Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/4c1EiEvivpx/4c1EiEvivpx.md +292 -0
- parse/train/4c1EiEvivpx/4c1EiEvivpx_content_list.json +1190 -0
- parse/train/4c1EiEvivpx/4c1EiEvivpx_middle.json +0 -0
- parse/train/4c1EiEvivpx/4c1EiEvivpx_model.json +0 -0
- parse/train/Bke4KsA5FX/Bke4KsA5FX.md +598 -0
- parse/train/Bke4KsA5FX/Bke4KsA5FX_content_list.json +0 -0
- parse/train/Bke4KsA5FX/Bke4KsA5FX_middle.json +0 -0
- parse/train/Bke4KsA5FX/Bke4KsA5FX_model.json +0 -0
- parse/train/G1jmxFOtY_/G1jmxFOtY_.md +374 -0
- parse/train/G1jmxFOtY_/G1jmxFOtY__content_list.json +1531 -0
- parse/train/G1jmxFOtY_/G1jmxFOtY__middle.json +0 -0
- parse/train/G1jmxFOtY_/G1jmxFOtY__model.json +0 -0
- parse/train/Hye9lnCct7/Hye9lnCct7.md +389 -0
- parse/train/Hye9lnCct7/Hye9lnCct7_content_list.json +0 -0
- parse/train/Hye9lnCct7/Hye9lnCct7_middle.json +0 -0
- parse/train/Hye9lnCct7/Hye9lnCct7_model.json +0 -0
- parse/train/MQQeeDiO5vv/MQQeeDiO5vv.md +303 -0
- parse/train/MQQeeDiO5vv/MQQeeDiO5vv_content_list.json +1345 -0
- parse/train/MQQeeDiO5vv/MQQeeDiO5vv_middle.json +0 -0
- parse/train/MQQeeDiO5vv/MQQeeDiO5vv_model.json +0 -0
parse/train/4c1EiEvivpx/4c1EiEvivpx.md
ADDED
|
@@ -0,0 +1,292 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Neural Scene Flow Prior
|
| 2 |
+
|
| 3 |
+
Xueqian Li∗1,2 Jhony Kaesemodel Pontes1 Simon Lucey2 1Argo AI 2The University of Adelaide
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
Before the deep learning revolution, many perception algorithms were based on runtime optimization in conjunction with a strong prior/regularization penalty. A prime example of this in computer vision is optical and scene flow. Supervised learning has largely displaced the need for explicit regularization. Instead, they rely on large amounts of labeled data to capture prior statistics, which are not always readily available for many problems. Although optimization is employed to learn the neural network, the weights of this network are frozen at runtime. As a result, these learning solutions are domain-specific and do not generalize well to other statistically different scenarios. This paper revisits the scene flow problem that relies predominantly on runtime optimization and strong regularization. A central innovation here is the inclusion of a neural scene flow prior, which uses the architecture of neural networks as a new type of implicit regularizer. Unlike learning-based scene flow methods, optimization occurs at runtime, and our approach needs no offline datasets—making it ideal for deployment in new environments such as autonomous driving. We show that an architecture based exclusively on multilayer perceptrons (MLPs) can be used as a scene flow prior. Our method attains competitive—if not better—results on scene flow benchmarks. Also, our neural prior’s implicit and continuous scene flow representation allows us to estimate dense long-term correspondences across a sequence of point clouds. The dense motion information is represented by scene flow fields where points can be propagated through time by integrating motion vectors. We demonstrate such a capability by accumulating a sequence of lidar point clouds.
|
| 8 |
+
|
| 9 |
+
# 1 Introduction
|
| 10 |
+
|
| 11 |
+
State-of-the-art results have recently been achieved by learning-based models [17, 30, 47, 60, 68] for the scene flow problem—the task of estimating 3D motion fields from dynamic scenes. However, such models heavily rely on large-scale data to capture prior knowledge, which is not always readily available. Scene flow annotations are expensive, and most methods train on synthetic and unrealistic scenarios to fine-tune on small real datasets.
|
| 12 |
+
|
| 13 |
+
Poor generalization to unseen, out-of-the-distribution inputs is another problem. Prior information is generally limited to the statistics of the data used for training. Real-world applications such as autonomous driving require robust solutions to low-level vision tasks such as depth, optical, and scene flow estimation that work in statistically different scenarios. Inspired by recent innovations that make use of coordinate-based networks (i.e., pixels or 3D positions as inputs) [9, 36, 37, 39, 56] for 3D modeling and rendering, we investigate the use of such networks to regularize the scene flow problem without any learning directly from point clouds. Optimization happens at runtime, and instead of learning a prior from data, the network structure itself captures the prior information. It is not limited to the statistics of a specific dataset.
|
| 14 |
+
|
| 15 |
+
Optimizing neural networks at execution time is not new. Ulyanov et al. [63] showed that a randomly initialized convolutional network could be used as a handcrafted prior for standard inverse problems such as image denoising, super-resolution, and inpainting. Ding and Feng [12] proposed a runtime optimization method (DeepMapping) for rigid pose estimation using deep neural networks. Although such deep image priors, deep mapping, and coordinate-based networks for neural scene representations have been successfully applied for inverse problems, rendering, and rigid registration, none has yet investigated (to the best of our knowledge) the use of network-based priors for regularizing scene flow directly from point clouds.
|
| 16 |
+
|
| 17 |
+
Our proposed neural prior is based on a simple multilayer perceptron (MLP) architecture, and we show it is powerful enough to regularize scene flow given two point clouds implicitly. The input to the network is 3D points, and the output is a regularized scene flow.
|
| 18 |
+
|
| 19 |
+
Our neural prior allows for a continuous scene flow representation instead of discrete such as in graph Laplacian-based priors, e.g., [45]. We show how the flow fields captured by our neural
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
Figure 1: Our neural scene flow prior method achieved higher accuracy while being ${ \sim } 1 0 \times$ faster than the recent runtime optimization method graph prior [45]. The evaluation was on the KITTI Scene Flow test set, where each point cloud size varies from $1 4 \mathrm { k }$ to $6 8 \mathrm { k }$ points. In our method, we fixed the number of hidden layers in the MLP to 4 and varied the number of hidden units. In the graph prior method, we varied the number of neighbors to create the graph. Accuracy uses the $A c c _ { 5 }$ metric as defined in the experiments section. Learningbased methods might still be $1 0 \times - 1 0 0 \times$ faster than the runtime optimization methods, but they still lack generalization and have memory issues when dealing with large point clouds—with tens of thousands of points.
|
| 23 |
+
|
| 24 |
+
prior can be employed to estimate long-term correspondences across a sequence of point clouds. The continuous scene flow allows for better integration of motions across time.
|
| 25 |
+
|
| 26 |
+
Our results are promising and competitive to supervised [30], self-supervised [38, 68], and nonlearning methods [1, 45] (see Table 1). Our method also scales to real-world point clouds with tens of thousands of points while achieving better accuracy and time complexity than recent runtime optimization methods (see Fig. 1).
|
| 27 |
+
|
| 28 |
+
# 2 Related work
|
| 29 |
+
|
| 30 |
+
Non-learning-based scene flow Scene flow is the uplift from the optical flow, which is proposed by Vedula et al. [64] as the non-rigid motion field in the 3D space. The authors proposed the optimization-based scene flow estimation using image sequences to infer reconstruction knowledge of the flow in 3D surfaces. Successive RGB/RGB-D image-based work [4, 18–21, 27, 43, 44, 50] used probability-based estimation, coarse-to-fine techniques, 6-DoF parameterization, or object segmentation, etc., to improve accuracy and computation time. Although image-based scene flow methods are widely used, direct estimation of the scene flow from the point cloud is still possible through non-rigid registration methods, such as [1, 10, 26, 42]. In this paper, we focus on point cloud-based scene flow estimation.
|
| 31 |
+
|
| 32 |
+
Learning-based scene flow Image-based learning methods [6, 51, 54, 60, 70] use convolution and data supervision to solve scene flow from monocular or RGB-D images with the available depth information. Other image-based methods [22, 23, 32, 52, 53] take care of extra occlusion cues in the large-scale autonomous driving scenes. Point-based learning methods have become more prevalent with the rapid development of point cloud feature learning [28, 48, 49, 65, 67]. FlowNet3D [30] is a seminal work that estimates scene flow using PointNet+ $^ +$ [49]. Successive work [17, 31, 47, 66] extends point-based learning methods using different feature extraction techniques. One obvious drawback of these supervised learning methods is the demand for sufficient ground truth labels. Besides, supervised methods lack generalizability while eventually only fitting domain-specific data. Self-supervised methods [25, 38, 61, 68], on the other hand, replaced the loss between the prediction and the ground truth flow with a point distance loss to use the point cloud itself as supervision.
|
| 33 |
+
|
| 34 |
+
Self-supervision can adapt to different datasets and maintain certain generalizability. Nonetheless, massive training data are still required for sufficient learning.
|
| 35 |
+
|
| 36 |
+
The graph Laplacian method Graph Laplacian [2] is widely used to smooth the surface in mesh processing [5, 14, 57, 58], point cloud denoising [11, 71], etc. Here we talk about the recent scene flow estimation using Graph Laplacian [45]. The method explicitly constructed a graph of the point cloud to constrain the non-rigid scene flow as rigid within a specific range. While as a dataless runtime optimization, the method is heavily affected by the hyperparameters of the graph and loses scalability when the point cloud becomes larger or the neighbors in the graph grow.
|
| 37 |
+
|
| 38 |
+
Deep neural prior, implicit functions, and neural rendering Although large-scale data helps in feature representation [59], end-to-end learning still requires high computation capacity and readily available training datasets. Instead, Ulyanov et al. [63] proposed a new style of optimization that uses a convolutional neural network to infer prior knowledge from the network architecture. One broader interest is to extend the idea of the network being an image function to the 3D shape modeling, and implicitly represent the continuous shape as level sets of neural networks. By directly mapping the 3D input to binary occupancy nets [9, 36], or signed distance functions [3, 39, 55], it is powerful to model the 3D geometries in a continuous space using the coordinate-based network. The following Scene Representation Networks [56] takes advantage of the coordinate-based network and renders view synthetic images. Mildenhall et al. proposed a seminal work NeRF [37], which is a novel way to do neural volume rendering using both point positions and viewing directions based on the coordinate-based network. Dynamic scene synthesis work [13, 16, 29, 40, 46, 62, 69] follows the NeRF framework, and integrates the motions to generate dynamic scenes. Some of the work [16, 29] use scene flow to further constrain or segment dynamic scenes. An interesting work that solves for the rigid alignment between point clouds using runtime optimization is DeepMapping [12]. However, this work only deals with rigid motion, and the network architecture is more complex than coordinate-based networks. In this work, we are interested in coordinate-based networks to address the large-scale, real-world scene flow problem.
|
| 39 |
+
|
| 40 |
+
# 3 Approach
|
| 41 |
+
|
| 42 |
+
Problem definition Let $S _ { 1 }$ and $S _ { 2 }$ be two 3D point clouds sampled from a dynamic scene at time $t$ -1 and $t$ . The number of points in each point cloud, $| S _ { 1 } |$ and $| S _ { 2 } |$ , are typically different and not in correspondence. A 3D point $\mathbf { p } \in S _ { 1 }$ moving from time $t \mathrm { - } 1$ to time $t$ can be modeled by a translational vector (or flow vector) $\bar { \mathbf { f } } \in \mathbb { R } ^ { 3 }$ , where $\mathbf { p ^ { \prime } } = \mathbf { p } + \mathbf { f }$ . The collection of flow vectors for all 3D points is the scene flow $\mathcal { F } = \{ \mathbf { f } _ { i } \} _ { i = 1 } ^ { | S _ { 1 } | }$ .
|
| 43 |
+
|
| 44 |
+
Optimization We want to optimize for a scene flow $\mathcal { F }$ that minimizes the distance between the two point clouds, $S _ { 1 }$ and $S _ { 2 }$ . Given the non-rigidity assumption of the scene, the optimization is inherently unconstrained. Thus, a regularization term C is necessary to constrain the motion field. We therefore solve for scene flow as
|
| 45 |
+
|
| 46 |
+
$$
|
| 47 |
+
\mathcal { F } ^ { * } = \underset { \mathcal { F } } { \arg \operatorname* { m i n } } \sum _ { \mathbf { p } \in S _ { 1 } } \mathbf { D } \left( \mathbf { p } + \mathbf { f } , S _ { 2 } \right) + \lambda \mathbf { C } ,
|
| 48 |
+
$$
|
| 49 |
+
|
| 50 |
+
where $\mathrm { D }$ is a function to compute the distance from the perturbed point $\mathbf { p }$ by the flow vector f to its closest neighbor in $S _ { 2 }$ . C is a regularizer (e.g., Laplacian regularizer), and $\lambda$ is a weighting factor for the regularizer. In this paper, we want to investigate using a neural prior to regularize the scene flow.
|
| 51 |
+
|
| 52 |
+
# 3.1 Neural scene flow prior
|
| 53 |
+
|
| 54 |
+
Learning-based scene flow methods learn scene flow priors from a large number of examples. As in Deep Image Prior [63], we want to investigate if the structure of a neural network by itself is sufficient to capture a scene flow prior without any learning.
|
| 55 |
+
|
| 56 |
+
Here we use a neural network as an implicit regularizer. The parameters are optimized as
|
| 57 |
+
|
| 58 |
+
$$
|
| 59 |
+
\Theta ^ { * } = \underset { \Theta } { \arg \operatorname* { m i n } } \sum _ { \mathbf { p } \in S _ { 1 } } \mathrm { D } \left( \mathbf { p } + g \left( \mathbf { p } ; \Theta \right) , S _ { 2 } \right) ,
|
| 60 |
+
$$
|
| 61 |
+
|
| 62 |
+
where $g$ is a neural network parameterized by $\Theta$ to regularize the scene flow $\mathcal { F }$ . The input to $g$ is $\mathbf { p }$ which is the point to be disturbed by the flow. The output of $g$ is $\mathbf { f }$ and thus $\mathbf { f } ^ { * } = g \left( \mathbf { p } ; \mathbf { \bar { \Theta } } \right)$ . For the distance function D, we define it as
|
| 63 |
+
|
| 64 |
+
$$
|
| 65 |
+
\mathbf { D } \left( \mathbf { p } , \pmb { S } \right) = \operatorname* { m i n } _ { \mathbf { x } \in \pmb { S } } \| \mathbf { p } - \mathbf { x } \| _ { 2 } ^ { 2 } .
|
| 66 |
+
$$
|
| 67 |
+
|
| 68 |
+
In practice, we use it bidirectionally for both point sets, which is equivalent to Chamfer distance [15].
|
| 69 |
+
|
| 70 |
+
The objective in Eq. (2), is for the forward scene flow $\mathcal { F }$ , which is the one we are interested in. However, it has been shown in [30, 38], that a cycle consistency regularizer encourages better scene flow estimations. The extra regularizer simply enforces the backward flow to be similar to the forward flow, $\mathcal { F } _ { b w d } \approx \mathcal { F }$ . The optimal backward flow is defined as $\mathbf { f } _ { b w d } ^ { * } = g \left( \mathbf { p } ^ { \prime } ; \mathbf { \Theta } \Theta _ { b w d } ^ { * } \right)$ , where $\mathbf { p } ^ { \prime }$ is the shifted point by the forward flow as $\mathbf { p } + \mathbf { f }$ . Note that the network $g$ is the same but with different parameters, $\Theta _ { b w d }$ . Using the backward flow as an additional constraint, the optimal network weights are solved as
|
| 71 |
+
|
| 72 |
+
$$
|
| 73 |
+
\Theta ^ { * } , \Theta _ { b w d } ^ { * } = \underset { \Theta , \Theta _ { b w d } } { \mathrm { a r g } \mathrm { m i n } } \sum _ { \mathbf { p } \in S _ { 1 } } \mathbf { D } \left( \mathbf { p } + g \left( \mathbf { p } ; \Theta \right) , S _ { 2 } \right) + \sum _ { \mathbf { p } ^ { \prime } \in S _ { 1 } ^ { \prime } } \mathbf { D } \left( \mathbf { p } ^ { \prime } + g \left( \mathbf { p } ^ { \prime } ; \Theta _ { b w d } \right) , S _ { 1 } \right) ,
|
| 74 |
+
$$
|
| 75 |
+
|
| 76 |
+
where $ { \boldsymbol { S } } _ { 1 } ^ { \prime }$ is the shifted $S _ { 1 }$ by the forward flow, i.e., $S _ { 1 } ^ { \prime } = S _ { 1 } { + } \mathcal { F }$ . Please find more details in the supplementary material. For the network $g$ , we use MLPs with ReLU activations. The objective function in Eq. (4) can be optimized by gradient descent techniques using off-the-shelf frameworks with automatic differentiation. We show in the experiments section how the architecture of the neural prior affects performance by varying the number of hidden layers and units.
|
| 77 |
+
|
| 78 |
+
Why use a neural scene flow prior? Deep learning relies on massive amounts of data and computational resources to capture prior statistics. Although learning methods have achieved impressive results in most tasks, they still struggle when deployed in environments where the statistics are different from those captured during learning. Our intuition is that a neural prior acts as a strong implicit regularizer that constrains dynamic motion fields to be as smooth as possible. A neural scene flow prior also scales to large scenes while achieving high-fidelity results at a low computational cost. Our proposed method with 8 hidden layers and 128 hidden units has about $1 1 6 \mathrm { k }$ parameters. FlowNet3D [30], for example, has about 1.2M parameters. Our method has ${ \sim } 1 0 \times$ fewer parameters than the state-of-the-art supervised methods while achieving competitive, if not better, results. Lastly, our deep scene flow prior captures a continuous flow field that allows us to perform better scene flow interpolation across a sequence of point clouds.
|
| 79 |
+
|
| 80 |
+
# 4 Experiments
|
| 81 |
+
|
| 82 |
+
We evaluated the performance (accuracy, generalizability, and computational cost) of our neural prior for scene flow on synthetic and real-world datasets. We performed experiments on different neural network settings and analyzed the performance of the neural prior to regularizing scene flow. Remarkably, we show that a simple MLP-based prior to regularize scene flow is enough to achieve competitive results to the state-of-the-art scene flow methods.
|
| 83 |
+
|
| 84 |
+
Datasets We used four scene flow datasets: 1) FlyingThings3D [33] which is an extensive collection of randomly moving synthetic objects. We used the preprocessed data from [30]; 2) KITTI [34, 35] which has real-world self-driving scenes. We used the subset released by [30]; 3) Argoverse [8] and 4) nuScenes [7] are two large-scale autonomous driving datasets with challenging dynamic scenes. However, there are no official scene flow annotations. We followed the data processing method in [45] to collect pseudo-ground-truth scene flow. Ground points were removed from lidar point clouds as in [30] (please refer to the supplementary material for more details).
|
| 85 |
+
|
| 86 |
+
Metrics We employed the widely used metrics as in [30, 38, 45, 68] to evaluate our method, which are: $\mathcal { E }$ to denote the end-point error (EPE), which is the mean absolute distance of two point clouds; $A c c _ { 5 }$ to denote the accuracy in percentage of estimated flows when $\mathcal { E } < 0 . 0 5 \mathrm { m }$ or $\mathcal { E } ^ { \prime } < 5 \%$ , where $\mathcal { E } ^ { \prime }$ is the relative error; $A c c _ { 1 0 }$ denotes the percentage of estimated flows where $\mathcal { E } < 0 . 1 \mathrm { m }$ or $\mathcal { E } ^ { \prime } < 1 0 \%$ ; and $\theta _ { \epsilon }$ which is the mean angle error between the estimated and ground-truth scene flows.
|
| 87 |
+
|
| 88 |
+
Implementation details We defined our neural prior for scene flow as a simple coordinate-based MLP architecture with 8 hidden layers, a fixed length of 128 for the hidden units, Rectified Linear Unit (ReLU) activation and shared weights across points. The network input is the 3D point cloud $\mathbf { P } _ { t - 1 }$ , and the output is the scene flow F. We used PyTorch [41] for the implementation and optimized the objective function with Adam [24]. The weights were randomly initialized. We set a fixed learning rate of $8 \mathrm { { e } - 3 }$ and run the optimization for 5k iterations with early stopping on the loss. For our settings and datasets, we found the optimization to mostly converge in less than 1k iterations. All experiments were run on a machine with an NVIDIA Quadro P5000 GPU and a 16 Intel(R) Xeon(R) W-2145 CPU $\textcircled { a } 3 . 7 0 \mathrm { G H z }$ .
|
| 89 |
+
|
| 90 |
+
Training setup for the learning-based methods We used the publicly available implementation of the learning-based methods to perform our experiments. The training settings for each method are: FlowNet3D and full-supervised PointPWC-Net: trained on FlyingThings3D with supervision; and self-supervised Just Go with the Flow and PointPWC-Net: trained on FlyingThings3D with supervision and fine-tuned on domain-matched datasets with self-supervision (i.e., fine-tuned and tested on statistically similar data, KITTI, nuScenes, Argoverse respectively). Note that FlowNet3D and full-supervised PointPWC-Net was only trained on the synthetic FlyingThings3D to demonstrate the poor generalizability of learning-based methods to other domains. Just Go with the Flow and self-supervised PointPWC-Net were trained using self-supervision, and although they do not require ground-truth annotations, they still require large-scale datasets for training to achieve competitive performance. Note that these self-supervised methods were both pretrained on fullylabeled FlyingThings3D to provide adequate full supervision.
|
| 91 |
+
|
| 92 |
+
Optimization setup for the non-learning methods Non-rigid ICP [1] was originally proposed for mesh registration. We adapted it for point cloud registration. A graph prior was recently proposed in [45] to optimize scene flow from point clouds. We implemented the method using the hyperparameters defined by the authors. The weight for the graph prior term is set to 10, the number of neighbors $k$ to build the $k$ -NN graph, if not explicitly specified, is set to 50, the learning rate to 0.1, and the number of iterations to $1 . 5 \mathrm { k }$ .
|
| 93 |
+
|
| 94 |
+

|
| 95 |
+
Figure 2: We analyzed the performance of our method on the KITTI test set when varying the number of hidden layers and hidden units of the MLP architecture. Accuracy is the $A c c _ { 5 }$ metric.
|
| 96 |
+
|
| 97 |
+
# 4.1 Choosing the neural prior architecture
|
| 98 |
+
|
| 99 |
+
Fig. 2 shows how the performance of our method
|
| 100 |
+
|
| 101 |
+
is affected when varying the neural prior MLP architecture: number of hidden layers and hidden units. The experiments were performed on the KITTI test set and all points included (i.e., without point sampling). The average number of points for the KITTI dataset is about $3 0 \mathrm { k }$ . We ran our method five times with different random seeds to include the uncertainty levels in the plot.
|
| 102 |
+
|
| 103 |
+
Overall, the performance of our method improved as we increased the number of hidden layers and hidden units. For small numbers of hidden layers (e.g., 1 and 2), the performance deteriorated when the number of hidden units is large, around 128 and 256 (or $2 ^ { 7 }$ and $2 ^ { 8 }$ ). We chose the MLP architecture with the best performance with relatively low computation time for our following experiments: 8 hidden layers and 128 $( 2 ^ { 7 } )$ hidden units.
|
| 104 |
+
|
| 105 |
+
# 4.2 Comparing to other methods
|
| 106 |
+
|
| 107 |
+
Table 1 shows how our method stands against other state-of-the-art methods on different datasets and metrics. We set the number of points to 2,048, which follows the experimental protocols as in FlowNet3D [30] and Graph prior [45]. We ran the experiments 5 times to report uncertainties for runtime optimization methods (i.e., our method and the graph prior method [45]) with uncertainties for each run. The learning-based methods and non-rigid ICP are deterministic during runtime.
|
| 108 |
+
|
| 109 |
+
Our method achieved better performance in most datasets and metrics. We considered the well-known Non-rigid ICP as a baseline for the non-learning methods ( ). Our method outperformed the recent graph prior method by a large margin. The supervised FlowNet3D and PointPWC-Net (using fullsupervision loss) methods ( ) had better performance on FlyingThings3D because they were trained on it with supervision. If the dataset is out-of-the-distribution, these supervised methods produced unreliable results. The self-supervised methods ( ), Just Go with the Flow and PointPWC-Net (using self-supervision loss), despite not being exposed to ground-truth labels during training, still generated better results than supervised methods—showing that self-supervision is an important direction for scene flow estimation. Still, it is remarkable that with a simple MLP regularizer and an optimization framework, our method can robustly estimate scene flow from point clouds with great accuracy.
|
| 110 |
+
|
| 111 |
+
Table 1: Performance of our method and others across different datasets and metrics. are supervised methods trained on the synthetic FlyingThings3D dataset. are self-supervised methods trained on FlyingThings3D with supervision and fine-tuned with self-supervision on matched datasets. $\bullet$ are non-learning methods that do not rely on training data. All experiments were run with 2,048 points. ↑ means larger values are better while $\downarrow$ means smaller values are better. We did no report standard deviations smaller than 1e−2.
|
| 112 |
+
|
| 113 |
+
<table><tr><td></td><td colspan="4">FlyingThings3D [33] Train:19,967 samples,Test: 2,000 samples</td><td colspan="4">nuScenes Scene Flow [7] Train:1,513 samples,Test:310 samples</td></tr><tr><td></td><td colspan="4"></td><td colspan="4"></td></tr><tr><td></td><td>ε(m)↓</td><td>Acc5(%) ↑</td><td>Acc10(%) ↑</td><td>0e(rad)↓</td><td>ε(m)↓</td><td>Acc5(%) ↑</td><td>Acc10(%) ↑</td><td>θe(rad)↓</td></tr><tr><td>·FlowNet3D [30]</td><td>0.134</td><td>22.64</td><td>54.17</td><td>0.305</td><td>0.505</td><td>2.12</td><td>10.81</td><td>0.620</td></tr><tr><td>·PointPWC-Net [68]</td><td>0.121</td><td>29.09</td><td>61.70</td><td>0.229</td><td>0.442</td><td>7.64</td><td>22.32</td><td>0.497</td></tr><tr><td>Just Go with the Flow [38]</td><td colspan="4"></td><td>0.625</td><td>6.09</td><td>0.139 22.42</td><td>0.432</td></tr><tr><td>·PointPWC-Net [68]</td><td></td><td></td><td></td><td></td><td>0.431</td><td>6.87</td><td></td><td>0.406</td></tr><tr><td>·Non-rigid ICP [1]</td><td>0.339 0.255</td><td>14.05</td><td>35.68</td><td>0.480</td><td>0.402</td><td>6.99</td><td>21.01</td><td>0.492 0.337</td></tr><tr><td>•Graph prior [45] ·Ours</td><td>0.234</td><td>16.56±0.02 19.16±0.23</td><td>42.05±0.02 46.74±0.46</td><td>0.362 0.341</td><td>0.289 0.175±0.01</td><td>20.12±0.01 35.18±1.32</td><td>43.54±0.02 63.45±0.46</td><td>0.279±0.04</td></tr><tr><td></td><td></td><td colspan="3">KITTI Scene Flow [34,35]</td><td colspan="4"></td></tr><tr><td></td><td colspan="4">Train:100 samples,Test: 50 samples</td><td colspan="4">Argoverse Scene Flow [8] Train:2,691 samples,Test: 212 samples</td></tr><tr><td></td><td>ε(m)↓</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>·FlowNet3D [30]</td><td></td><td>Acc5(%) ↑</td><td>Acc10(%) ↑</td><td>θ(rad)↓</td><td>ε(m)↓</td><td>Acc5(%) ↑</td><td>Acc10(%) ↑</td><td>θ(rad)↓</td></tr><tr><td>·PointPWC-Net [68]</td><td>0.199 0.142</td><td>10.44 29.91</td><td>38.89 59.83</td><td>0.386 0.239</td><td>0.455 0.405</td><td>1.34 8.25</td><td>6.12 25.47</td><td>0.736 0.674</td></tr><tr><td>• Just Go with the Flow [38]</td><td>0.218</td><td></td><td>34.38</td><td>0.254</td><td>0.542</td><td>8.80</td><td>20.28</td><td>0.715</td></tr><tr><td>·PointPWC-Net [68]</td><td>0.177</td><td>10.17 13.29</td><td>42.15</td><td>0.272</td><td>0.409</td><td>9.79</td><td>29.31</td><td>0.643</td></tr><tr><td>•Non-rigid ICP[1]</td><td>0.338</td><td>22.06</td><td>43.03</td><td>0.460</td><td>0.461</td><td>4.27</td><td>13.90</td><td>0.741</td></tr><tr><td>·Graph prior [45]</td><td>0.099</td><td>63.60±0.09</td><td>81.18±0.08</td><td>0.176</td><td>0.257</td><td>25.24±0.04</td><td>47.60±0.02</td><td>0.467</td></tr><tr><td>●Ours</td><td>0.050±0.01</td><td>81.68±2.00</td><td>93.19±1.30</td><td>0.133±0.01</td><td>0.159±0.01</td><td>38.43±0.48</td><td>63.08±0.59</td><td>0.374±0.01</td></tr></table>
|
| 114 |
+
|
| 115 |
+
Our PointPWC-Net results were different from those reported in the PointPWC-Net paper. The reasons are: In the official PointPWC-Net implementation, there is a threshold to limit the lidar point cloud within 35 meters of distance from the center. In our experiments, we used all points available in all ranges (up to $8 5 \mathrm { m }$ ). Lidar point clouds get sparser as the distance increases, making it challenging to estimate scene flow in far ranges and sparse regions. Nevertheless, we did not shy away from this fact in our experiments. Also, in the original PointPWC-Net experiments, the authors used 8,192 points. In ours, we used 2,048 points. Naturally, there exists a performance gap between our reported results and theirs. We decided to use 2,048 points to follow the experiment protocols proposed in FlowNet3D [30] and graph prior [45] to facilitate comparisons across different datasets and models. Although simple and tested on sparse point clouds (2,048 points), our method achieved impressive results on different datasets. Please find further details and additional experiments in the supplementary material.
|
| 116 |
+
|
| 117 |
+
# 4.3 Estimating scene flow from large point clouds with high density
|
| 118 |
+
|
| 119 |
+
Real-world point clouds collected from depth sensors such as lidar typically have tens of thousands of points. We evaluated the performance of our method on large point clouds and compared it against the graph prior method. The KITTI and Argoverse Scene Flow datasets were used, given that both have large point clouds with high density.
|
| 120 |
+
|
| 121 |
+
Fig. 3 shows the performance on the KITTI Scene Flow dataset, in terms of accuracy and computational time, of our method and the graph prior method when varying the number of points. Our method’s accuracy $( A c c _ { 5 } )$ increased as the number of points grew until around $2 0 \mathrm { k }$ points and then saturated, while the computational time slowly increased. In contrast, the graph prior achieved lower accuracy and dramatic growth in computation. The computational complexity of our MLPbased prior grows linearly in the number of points, ${ \mathcal { O } } ( n )$ , while the graph prior grows quadratically in the number of points, $O ( n ^ { 2 } )$ . The graph prior relies on the construction of a graph Laplacian matrix to use as a regularizer (i.e., $\mathbf { L } \in \mathbb { R } ^ { n \times n }$ , where $n$ is the number of points).
|
| 122 |
+
|
| 123 |
+

|
| 124 |
+
Figure 3: Performance of our neural prior and the graph prior [45] when varying the number of points. Our method achieved higher accuracy $( A c c _ { 5 } )$ and better time complexity. Results were averaged over the KITTI Scene Flow dataset.
|
| 125 |
+
|
| 126 |
+
Table 2: Performance of our neural prior and the graph prior [45] when using all points available. Our method achieved better performance on all metrics by a margin while being ${ \sim } 5 \times$ faster if $k { = } 5 0$ and ${ \sim } 1 0 \times$ faster if $k { = } 2 0 0$ (for KITTI).
|
| 127 |
+
|
| 128 |
+
<table><tr><td></td><td colspan="5">KITTI Scene Flow Average number of points:~30k</td></tr><tr><td></td><td>m↓ (m)</td><td>Acc5↑ (%)</td><td>Acc10 ↑ (%)</td><td>↓ (rad)</td><td>Time↓ (s)</td></tr><tr><td>Graph prior (k=50)</td><td>0.225</td><td>65.50</td><td>70.32</td><td>0.277</td><td>162.97</td></tr><tr><td>Graph prior (k=200)</td><td>0.082</td><td>84.00</td><td>88.45</td><td>0.141</td><td>310.12</td></tr><tr><td>Ours</td><td>0.025</td><td>95.68</td><td>98.00</td><td>0.085</td><td>38.33</td></tr><tr><td></td><td colspan="5">Argoverse Scene Flow Average number of points:~50k</td></tr><tr><td></td><td>m↓ (m)</td><td>Acc5↑ (%</td><td>AcC10 ↑ (%)</td><td>0↓ (rad)</td><td>Time↓ (s)</td></tr><tr><td>Graph prior (k=50)</td><td>0.249</td><td>46.92</td><td>61.72</td><td>0.494</td><td>410.21</td></tr><tr><td>Ours</td><td>0.043</td><td>86.04</td><td>94.07</td><td>0.244</td><td>84.46</td></tr></table>
|
| 129 |
+
|
| 130 |
+
The accuracy of the graph prior method degraded after $1 0 \mathrm { k }$ points. The graph regularizer needs more than $5 \mathrm { k }$ iterations for higher density point clouds to converge to a reasonable solution or carefully tuned schedulers to accelerate its convergence. Moreover, the $k$ -NN graph is built with 50 neighbors, and for higher density point clouds, larger graphs might be necessary for a better regularization.
|
| 131 |
+
|
| 132 |
+
Table 2 shows a quantitative comparison between our method and the graph prior method on the KITTI and Argoverse Scene Flow datasets when using all points. Our method achieved better performance on all metrics. We also reported results for the graph prior method when setting the number of neighbors, $k$ , to 200. According to our results in Fig. 1, the scene flow accuracy saturated after $k { = } 2 0 0$ . Fig. 4 shows a qualitative example of a scene flow estimation using our method.
|
| 133 |
+
|
| 134 |
+
These results show that our method scales to large point clouds with high density, and gain a great improvement in performance with much denser point clouds. In contrast, training supervised/selfsupervised models with high-density point clouds is not always practical due to high memory usage. Typically, such models are trained with up to $^ \mathrm { 8 k }$ points.
|
| 135 |
+
|
| 136 |
+
Performance and inference time tradeoffs Estimating scene flow with runtime optimization is usually slower than using learning-based methods $1 0 \times - 1 0 0 \times$ slower). The trade-off, however, depends on the application. If robustness/generalizability is not an issue but rather the inference time, our proposed objective can train a self-supervised model and act as a surrogate of our non-learning method but inheriting the faster inference time from the trained model. We show an example of lidar point cloud densification (Section 4.6) to generate denser point clouds that can be used for robotics applications such as offline mapping, creating denser depth maps, etc., that would not require real-time inference.
|
| 137 |
+
|
| 138 |
+

|
| 139 |
+
Figure 5: Example of a failure case. Partial scene from FlyingThings3D. Our nearest-neighbor-based loss might fail when handling large missing parts, occlusions, and bad correspondences. Green points are the target, and red points are the shifted blue points by the estimated scene flow (yellow arrows).
|
| 140 |
+
|
| 141 |
+
# 4.4 Limitations
|
| 142 |
+
|
| 143 |
+
Although our method achieved better computational complexity than other non-learning-based methods, the inference time is still limiting for some applications that demand real-time inferences.
|
| 144 |
+
|
| 145 |
+

|
| 146 |
+
Figure 4: Qualitative example of a scene flow estimation using our proposed method. The complex and highly dynamic driving scene is from the Argoverse Scene Flow dataset. The scene flow estimated by our method is close to the ground truth. We also show a prediction using the supervised FlowNet3D method trained on FlyingThings3D and fine-tuned on the KITTI Scene Flow dataset. Note how the scene flow deviated from the ground truth when the inference was performed on an out-of-the-distribution sample. The scene flow color encodes the magnitude (color intensity) and direction (angle) of the flow vectors. For example, the purplish vehicles are heading northeast.
|
| 147 |
+
|
| 148 |
+
Another limitation is that the loss function we used relies on nearest neighbors, which might find bad correspondences due to partial point clouds and occlusions. Fig. 5 shows a failure case because of the nearest-neighbor-based distance loss. Few corresponding points due to missing parts in the scene might lead to incorrect flow estimations.
|
| 149 |
+
|
| 150 |
+
# 4.5 A continuous scene flow field
|
| 151 |
+
|
| 152 |
+
Our neural prior implicitly regularizes the scene flow through the coordinate-based MLP network. Thus, our method allows for a continuous scene flow representation instead of a discrete representation such as in graph-based priors.
|
| 153 |
+
|
| 154 |
+
An advantage of a continuous scene flow representation is that we can reuse the optimal network weights to estimate dense long-term correspondences across a sequence of point clouds (see Section 4.6). Fig. 6 shows how the estimated scene flow and the continuous flow field change as the optimization converges to a solution.
|
| 155 |
+
|
| 156 |
+
# 4.6 Application: scene flow integration
|
| 157 |
+
|
| 158 |
+
Here we demonstrate how to use our method to perform scene flow integration. Given a temporal sequence of point sets, $\{ S _ { 0 } , S _ { 1 } , S _ { 2 } , \cdots , S _ { M } \}$ , we first optimize for the pairwise scene flows, $\{ \bar { \mathcal { F } } _ { 0 1 } , \mathcal { F } _ { 1 2 } , \cdot \cdot \cdot , \mathcal { F } _ { M - 1 M } \}$ , using our proposed method with the optimal neural prior parameters, $\{ \Theta _ { 0 \to 1 } ^ { * } , \Theta _ { 1 \to 2 } ^ { * } , \cdot \cdot \cdot , \Theta _ { M \cdot 1 \to M } ^ { * } \}$ , saved. Then, starting from $\mathbf { f } _ { 0 \to 1 }$ , we can integrate long-term flows using the classic Forward Euler method recursively for $m { = } 1 { : } M { - } 1$ iterations as
|
| 159 |
+
|
| 160 |
+
$$
|
| 161 |
+
\mathbf { f } _ { 0 m + 1 } = \mathbf { f } _ { 0 m } + g ( \mathbf { p } _ { 0 } + \mathbf { f } _ { 0 m } ; \mathbf { \Theta } _ { m m + 1 } ^ { * } ) .
|
| 162 |
+
$$
|
| 163 |
+
|
| 164 |
+

|
| 165 |
+
Figure 6: Example showing how the estimated scene flow and the continuous flow field (bottom) given by our neural prior change as the optimization converges to a solution. We show a top-view dynamic driving scene from Argoverse Scene Flow. The scene flow color encodes the magnitude (color intensity) and direction (angle) of the flow vectors. For example, the purplish vehicles are heading northeast. The red arrow shows the position and direction of travel of the autonomous vehicle, which is stopped, waiting for a pedestrian to cross the street. Note how the predicted scene flow is close to the ground truth at iteration 2k. At iteration 0, the scene flow is random, given the random initialization of the neural prior. Thus having very small magnitudes for the random directions. As the optimization went on, the flow fields became better constrained. A simple way to interpret the flow fields is to imagine sampling a point at any location in the continuous scene flow field to recover an estimated flow vector. For example, imagine sampling a point around the orange region in the flow field at iteration $2 \mathrm { k }$ (green arrow in the bottom right). The direction of the flow vector will be pointing southeast at a specific magnitude, similar to the vehicles in the orange region.
|
| 166 |
+
|
| 167 |
+
This gives the long-term scene flow $\mathcal { F } _ { 0 M } = \{ ( \mathbf { f } _ { 0 M } ) _ { i } \} _ { i = 0 } ^ { | S _ { 0 } | }$ , from ${ \cal S } _ { 0 } { \cal S } _ { M }$ . Note that we are not relying on discrete nearest-neighbor-based interpolations. Our neural scene flow prior is a continuous representation that naturally provides continuous scene flow estimations. Fig. 7 shows an example of an Argoverse scene where we applied such a technique to integrate 10 point clouds into a single frame to densify the point cloud.
|
| 168 |
+
|
| 169 |
+
# 5 Conclusion
|
| 170 |
+
|
| 171 |
+
We show that how hand-designed coordinate-based network architecture can serve as a new type of implicit regularizer in the runtime optimization for the scene flow problem. Our neural prior gets rid of the need for massive labeled/unlabeled training data while being scalable with dense point clouds. Additionally, since we infer prior knowledge from the network architectures instead of from data, our approach can generalize to out-of-the-distribution scenarios as compared to learning-based methods. The continuous flow representation also allows for flow integration across a long sequence that can be used in many robotics applications such as offline mapping. We believe this paper shows a promising direction for large-scale, real-world scene flow estimation without data supervision.
|
| 172 |
+
|
| 173 |
+
# Broader impact
|
| 174 |
+
|
| 175 |
+
Our proposed neural scene flow prior allows for estimating 3D motion fields from large-scale dynamic scenes without annotating massive data but preserving generalizability—making it useful for scenarios where motion prediction is required. Especially in computer vision and robotics communities, robust scene flow estimations is crucial. For example, autonomous vehicles need to predict future distribution of the surrounding objects to avoid catastrophe in dynamic environments; safe human-computer interaction is enabled with precise dynamic flow predictions. Our work also encourages further exploration in the combination of the innovative coordinate-based networks and classical runtime optimization algorithm. This dataless approach offers an affordable solution for many industrial problems without adequate supervision (e.g., autonomous driving).
|
| 176 |
+
|
| 177 |
+

|
| 178 |
+
Figure 7: Example of a scene flow integration to densify an Argoverse lidar point cloud. The left and middle columns are a top and front view of the point cloud, respectively. The rightmost column shows the accumulated point cloud projected onto the image. Note the smearing effect on the dynamic objects when rigidly accumulating the point clouds (middle row). Accumulation using our neural prior nicely produced a denser point cloud while taking care of all dynamic objects in the scene. Here, rigid means that the point cloud accumulation was performed using a rigid registration method (i.e., ICP) where rigid 6-DoF poses are used for the registrations.
|
| 179 |
+
|
| 180 |
+
However, as AI-based research, it could be misused by malicious groups for nefarious purposes. For example, the collected data might contain sensitive information that potentially invades privacy, and can be used for illegal data trading. Moreover, such research has the potential to be used in autonomous weapons and military drones. The potential evil use of our method needs attention and needs to be prevented. We hope to motivate the community to take full advantage of the innovations of this work to benefit society.
|
| 181 |
+
|
| 182 |
+
# Acknowledgments and Disclosure of Funding
|
| 183 |
+
|
| 184 |
+
The authors would like to thank Chen-Hsuan Lin for useful discussions through the project, review and help with section 3. We thank Haosen Xing for careful review of the entire manuscript and assistance in several parts of the paper, Jianqiao Zheng for helpful discussions. We thank all anonymous reviewers for their valuable comments and suggestions to make our paper stronger.
|
| 185 |
+
|
| 186 |
+
# References
|
| 187 |
+
|
| 188 |
+
[1] Brian Amberg, Sami Romdhani, and Thomas Vetter. Optimal step nonrigid ICP algorithms for surface registration. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1–8. IEEE, 2007. 2, 5, 6
|
| 189 |
+
[2] Rie Kubota Ando and Tong Zhang. Learning on graph with Laplacian regularization. Neural Information Processing Systems (NeurIPS), 19:25, 2007. 3
|
| 190 |
+
[3] Matan Atzmon and Yaron Lipman. SAL: Sign agnostic learning of shapes from raw data. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2565–2574, 2020. 3
|
| 191 |
+
[4] Tali Basha, Yael Moses, and Nahum Kiryati. Multi-view scene flow estimation: A view centered variational approach. International Journal of Computer Vision (IJCV), 101(1):6–21, 2013. 2
|
| 192 |
+
[5] Alexander I Bobenko and Boris A Springborn. A discrete Laplace–Beltrami operator for simplicial surfaces. Discrete & Computational Geometry, 38(4):740–756, 2007. 3
|
| 193 |
+
[6] Fabian Brickwedde, Steffen Abraham, and Rudolf Mester. Mono-SF: Multi-view geometry meets singleview depth for monocular scene flow estimation of dynamic traffic scenes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2780–2790, 2019. 2
|
| 194 |
+
[7] Holger Caesar, Varun Bankiti, Alex H Lang, Sourabh Vora, Venice Erin Liong, Qiang Xu, Anush Krishnan, Yu Pan, Giancarlo Baldan, and Oscar Beijbom. nuScenes: A multimodal dataset for autonomous driving. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 11621–11631, 2020. 4, 6
|
| 195 |
+
[8] Ming-Fang Chang, John Lambert, Patsorn Sangkloy, Jagjeet Singh, Slawomir Bak, Andrew Hartnett, De Wang, Peter Carr, Simon Lucey, Deva Ramanan, et al. Argoverse: 3D tracking and forecasting with rich maps. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 8748–8757, 2019. 4, 6
|
| 196 |
+
[9] Zhiqin Chen and Hao Zhang. Learning implicit fields for generative shape modeling. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5939–5948, 2019. 1, 3
|
| 197 |
+
[10] Haili Chui and Anand Rangarajan. A new point matching algorithm for non-rigid registration. Computer Vision and Image Understanding (CVIU), 89(2-3):114–141, 2003. 2
|
| 198 |
+
[11] Chinthaka Dinesh, Gene Cheung, and Ivan V Bajic. Point cloud denoising via feature graph laplacian ´ regularization. IEEE Transactions on Image Processing, 29:4143–4158, 2020. 3
|
| 199 |
+
[12] Li Ding and Chen Feng. DeepMapping: Unsupervised map estimation from multiple point clouds. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8650–8659, 2019. 2, 3
|
| 200 |
+
[13] Yilun Du, Yinan Zhang, Hong-Xing Yu, Joshua B Tenenbaum, and Jiajun Wu. Neural radiance flow for 4D view synthesis and video processing. arXiv e-prints, pages arXiv–2012, 2020. 3
|
| 201 |
+
[14] Marvin Eisenberger, Zorah Lahner, and Daniel Cremers. Smooth shells: Multi-scale shape registration with functional maps. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 12265–12274, 2020. 3
|
| 202 |
+
[15] Haoqiang Fan, Hao Su, and Leonidas J Guibas. A point set generation network for 3D object reconstruction from a single image. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 605–613, 2017. 4
|
| 203 |
+
[16] Chen Gao, Ayush Saraf, Johannes Kopf, and Jia-Bin Huang. Dynamic view synthesis from dynamic monocular video. arXiv preprint arXiv:2105.06468, 2021. 3
|
| 204 |
+
[17] Xiuye Gu, Yijie Wang, Chongruo Wu, Yong Jae Lee, and Panqu Wang. HPLFlownet: Hierarchical permutohedral lattice flownet for scene flow estimation on large-scale point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3254–3263, 2019. 1, 2
|
| 205 |
+
[18] Simon Hadfield and Richard Bowden. Kinecting the dots: Particle based scene flow from depth sensors. In Proceedings of the International Conference on Computer Vision (ICCV), pages 2290–2295. IEEE, 2011. 2
|
| 206 |
+
[19] Simon Hadfield and Richard Bowden. Scene particles: Unregularized particle-based scene flow estimation. IEEE Transactions on Pattern Analysis and Machine Intelligence (PAMI), 36(3):564–576, 2013. 2
|
| 207 |
+
[20] Michael Hornacek, Andrew Fitzgibbon, and Carsten Rother. SphereFlow: 6 DoF scene flow from RGB-D pairs. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3526–3533, 2014. 2
|
| 208 |
+
[21] Frédéric Huguet and Frédéric Devernay. A variational method for scene flow estimation from stereo sequences. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1–7. IEEE, 2007. 2
|
| 209 |
+
[22] Junhwa Hur and Stefan Roth. Self-supervised monocular scene flow estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 7396–7405, 2020. 2
|
| 210 |
+
[23] Huaizu Jiang, Deqing Sun, Varun Jampani, Zhaoyang Lv, Erik Learned-Miller, and Jan Kautz. SENSE: A shared encoder network for scene-flow estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3195–3204, 2019. 2
|
| 211 |
+
[24] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Yoshua Bengio and Yann LeCun, editors, Proceedings of the International Conference on Learning Representations (ICLR), 2015. 5
|
| 212 |
+
[25] Yair Kittenplon, Yonina C Eldar, and Dan Raviv. FlowStep3D: Model unrolling for self-supervised scene flow estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2021. 2
|
| 213 |
+
[26] Hao Li, Robert W Sumner, and Mark Pauly. Global correspondence optimization for non-rigid registration of depth scans. In Computer Graphics Forum, volume 27, pages 1421–1430. Wiley Online Library, 2008. 2
|
| 214 |
+
[27] Rui Li and Stan Sclaroff. Multi-scale 3D scene flow from binocular stereo sequences. Computer Vision and Image Understanding (CVIU), 110(1):75–90, 2008. 2
|
| 215 |
+
[28] Yangyan Li, Rui Bu, Mingchao Sun, Wei Wu, Xinhan Di, and Baoquan Chen. PointCNN: Convolution on X-transformed points. Neural Information Processing Systems (NeurIPS), 31:820–830, 2018. 2
|
| 216 |
+
[29] Zhengqi Li, Simon Niklaus, Noah Snavely, and Oliver Wang. Neural scene flow fields for space-time view synthesis of dynamic scenes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2021. 3
|
| 217 |
+
[30] Xingyu Liu, Charles R Qi, and Leonidas J Guibas. FlowNet3D: Learning scene flow in 3D point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 529–537, 2019. 1, 2, 4, 5, 6
|
| 218 |
+
[31] Xingyu Liu, Mengyuan Yan, and Jeannette Bohg. MeteorNet: Deep learning on dynamic 3d point cloud sequences. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 9246–9255, 2019. 2
|
| 219 |
+
[32] Wei-Chiu Ma, Shenlong Wang, Rui Hu, Yuwen Xiong, and Raquel Urtasun. Deep rigid instance scene flow. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3614–3622, 2019. 2
|
| 220 |
+
[33] Nikolaus Mayer, Eddy Ilg, Philip Hausser, Philipp Fischer, Daniel Cremers, Alexey Dosovitskiy, and Thomas Brox. A large dataset to train convolutional networks for disparity, optical flow, and scene flow estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4040–4048, 2016. 4, 6
|
| 221 |
+
[34] Moritz Menze and Andreas Geiger. Object scene flow for autonomous vehicles. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3061–3070, 2015. 4, 6
|
| 222 |
+
[35] Moritz Menze, Christian Heipke, and Andreas Geiger. Joint 3D estimation of vehicles and scene flow. ISPRS Annals of the Photogrammetry, Remote Sensing and Spatial Information Sciences, 2:427, 2015. 4, 6
|
| 223 |
+
[36] Lars Mescheder, Michael Oechsle, Michael Niemeyer, Sebastian Nowozin, and Andreas Geiger. Occupancy networks: Learning 3d reconstruction in function space. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4460–4470, 2019. 1, 3
|
| 224 |
+
[37] Ben Mildenhall, Pratul P Srinivasan, Matthew Tancik, Jonathan T Barron, Ravi Ramamoorthi, and Ren Ng. NeRF: Representing scenes as neural radiance fields for view synthesis. In Proceedings of the European Conference on Computer Vision (ECCV), pages 405–421. Springer, 2020. 1, 3
|
| 225 |
+
[38] Himangi Mittal, Brian Okorn, and David Held. Just go with the flow: Self-supervised scene flow estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 11177– 11185, 2020. 2, 4, 6
|
| 226 |
+
[39] Jeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, and Steven Lovegrove. DeepSDF: Learning continuous signed distance functions for shape representation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 165–174, 2019. 1, 3
|
| 227 |
+
[40] Keunhong Park, Utkarsh Sinha, Jonathan T. Barron, Sofien Bouaziz, Dan B Goldman, Steven M. Seitz, and Ricardo Martin-Brualla. Deformable neural radiance fields. arXiv preprint arXiv:2011.12948, 2020. 3
|
| 228 |
+
[41] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. PyTorch: An imperative style, high-performance deep learning library. In Neural Information Processing Systems (NeurIPS), 2019. 5
|
| 229 |
+
[42] Mark Pauly, Niloy J Mitra, Joachim Giesen, Markus H Gross, and Leonidas J Guibas. Example-based 3D scan completion. In Symposium on Geometry Processing, pages 23–32, 2005. 2
|
| 230 |
+
[43] Jean-Philippe Pons, Renaud Keriven, and Olivier Faugeras. Multi-view stereo reconstruction and scene flow estimation with a global image-based matching score. International Journal of Computer Vision (IJCV), 72(2):179–193, 2007. 2
|
| 231 |
+
[44] J-P Pons, Renaud Keriven, O Faugeras, and Gerardo Hermosillo. Variational stereovision and 3D scene flow estimation with statistical similarity measures. In Proceedings of the International Conference on Computer Vision (ICCV), volume 2, pages 597–597. IEEE Computer Society, 2003. 2
|
| 232 |
+
[45] Jhony Kaesemodel Pontes, James Hays, and Simon Lucey. Scene flow from point clouds with or without learning. In Proceedings of the International Conference on 3D Vision (3DV). IEEE, 2020. 2, 3, 4, 5, 6, 7
|
| 233 |
+
[46] Albert Pumarola, Enric Corona, Gerard Pons-Moll, and Francesc Moreno-Noguer. D-NeRF: Neural Radiance Fields for Dynamic Scenes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2021. 3
|
| 234 |
+
[47] Gilles Puy, Alexandre Boulch, and Renaud Marlet. FLOT: Scene Flow on Point Clouds Guided by Optimal Transport. In Proceedings of the European Conference on Computer Vision (ECCV), 2020. 1, 2
|
| 235 |
+
[48] Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. PointNet: Deep learning on point sets for 3D classification and segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 652–660, 2017. 2
|
| 236 |
+
[49] Charles R Qi, Li Yi, Hao Su, and Leonidas J Guibas. PointNet $^ { + + }$ : Deep hierarchical feature learning on point sets in a metric space. In Neural Information Processing Systems (NeurIPS), pages 5105–5114, 2017. 2
|
| 237 |
+
[50] Julian Quiroga, Thomas Brox, Frédéric Devernay, and James Crowley. Dense semi-rigid scene flow estimation from rgbd images. In Proceedings of the European Conference on Computer Vision (ECCV), pages 567–582. Springer, 2014. 2
|
| 238 |
+
[51] Rishav Rishav, Ramy Battrawy, René Schuster, Oliver Wasenmüller, and Didier Stricker. DeepLiDARFlow: A deep learning architecture for scene flow estimation using monocular camera and sparse LiDAR. In Proceedings of the IEEE/RSJ Conference on Intelligent Robots and Systems (IROS), pages 10460–10467. IEEE, 2020. 2
|
| 239 |
+
[52] Rohan Saxena, René Schuster, Oliver Wasenmuller, and Didier Stricker. PWOC-3D: Deep occlusion-aware end-to-end scene flow estimation. In Proceedings of the IEEE Intelligent Vehicles Symposium (IV), pages 324–331. IEEE, 2019. 2
|
| 240 |
+
[53] René Schuster, Christian Unger, and Didier Stricker. A deep temporal fusion framework for scene flow using a learnable motion model and occlusions. In Proceedings of the IEEE Workshop on Applications of Computer Vision (WACV), pages 247–255, 2021. 2
|
| 241 |
+
[54] Lin Shao, Parth Shah, Vikranth Dwaracherla, and Jeannette Bohg. Motion-based object segmentation based on dense RGB-D scene flow. IEEE Robotics and Automation Letters, 3(4):3797–3804, 2018. 2
|
| 242 |
+
[55] Vincent Sitzmann, Julien Martel, Alexander Bergman, David Lindell, and Gordon Wetzstein. Implicit neural representations with periodic activation functions. Neural Information Processing Systems (NeurIPS), 33, 2020. 3
|
| 243 |
+
[56] Vincent Sitzmann, Michael Zollhoefer, and Gordon Wetzstein. Scene representation networks: Continuous 3D-structure-aware neural scene representations. Neural Information Processing Systems (NeurIPS), 32:1121–1132, 2019. 1, 3
|
| 244 |
+
[57] Olga Sorkine. Laplacian mesh processing. Eurographics (STARs), 29, 2005. 3
|
| 245 |
+
[58] Olga Sorkine and Marc Alexa. As-rigid-as-possible surface modeling. In Symposium on Geometry Processing, volume 4, pages 109–116, 2007. 3
|
| 246 |
+
[59] Chen Sun, Abhinav Shrivastava, Saurabh Singh, and Abhinav Gupta. Revisiting unreasonable effectiveness of data in deep learning era. In Proceedings of the International Conference on Computer Vision (ICCV), pages 843–852, 2017. 3
|
| 247 |
+
[60] Zachary Teed and Jia Deng. RAFT-3D: Scene flow using rigid-motion embeddings. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8375–8384, 2021. 1, 2
|
| 248 |
+
[61] Ivan Tishchenko, Sandro Lombardi, Martin Oswald, and Marc Pollefeys. Self-supervised learning of non-rigid residual flow and ego-motion. In Proceedings of the International Conference on 3D Vision (3DV), 2020. 2
|
| 249 |
+
[62] Edgar Tretschk, Ayush Tewari, Vladislav Golyanik, Michael Zollhöfer, Christoph Lassner, and Christian Theobalt. Non-rigid neural radiance fields: Reconstruction and novel view synthesis of a dynamic scene from monocular video, 2020. 3
|
| 250 |
+
[63] Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Deep image prior. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 9446–9454, 2018. 2, 3
|
| 251 |
+
[64] Sundar Vedula, Simon Baker, Peter Rander, Robert Collins, and Takeo Kanade. Three-dimensional scene flow. In Proceedings of the International Conference on Computer Vision (ICCV), volume 2, pages 722–729. IEEE, 1999. 2
|
| 252 |
+
[65] Yue Wang, Yongbin Sun, Ziwei Liu, Sanjay E Sarma, Michael M Bronstein, and Justin M Solomon. Dynamic graph CNN for learning on point clouds. ACM Transactions on Graphics (TOG), 38(5):1–12, 2019. 2
|
| 253 |
+
[66] Zirui Wang, Shuda Li, Henry Howard-Jenkins, Victor Prisacariu, and Min Chen. FlowNet3D $^ { + + }$ : Geometric losses for deep scene flow estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 91–98, 2020. 2
|
| 254 |
+
[67] Wenxuan Wu, Zhongang Qi, and Li Fuxin. PointConv: Deep convolutional networks on 3d point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 9621–9630, 2019. 2
|
| 255 |
+
[68] Wenxuan Wu, Zhi Yuan Wang, Zhuwen Li, Wei Liu, and Li Fuxin. PointPWC-Net: Cost volume on point clouds for (self-) supervised scene flow estimation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 88–107. Springer, 2020. 1, 2, 4, 6
|
| 256 |
+
[69] Wenqi Xian, Jia-Bin Huang, Johannes Kopf, and Changil Kim. Space-time neural irradiance fields for free-viewpoint video. arXiv preprint arXiv:2011.12950, 2020. 3
|
| 257 |
+
[70] Gengshan Yang and Deva Ramanan. Upgrading optical flow to 3D scene flow through optical expansion. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1334–1343, 2020. 2
|
| 258 |
+
[71] Jin Zeng, Gene Cheung, Michael Ng, Jiahao Pang, and Cheng Yang. 3D point cloud denoising using graph Laplacian regularization of a low dimensional manifold model. IEEE Transactions on Image Processing, 29:3474–3489, 2019. 3
|
| 259 |
+
|
| 260 |
+
# Checklist
|
| 261 |
+
|
| 262 |
+
1. For all authors...
|
| 263 |
+
|
| 264 |
+
(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
|
| 265 |
+
(b) Did you describe the limitations of your work? [Yes] We described the limitations in the experiment section, and we also provided failure cases.
|
| 266 |
+
(c) Did you discuss any potential negative societal impacts of your work? [Yes] We discussed in the Broader Impact section
|
| 267 |
+
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
|
| 268 |
+
|
| 269 |
+
2. If you are including theoretical results...
|
| 270 |
+
|
| 271 |
+
(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A]
|
| 272 |
+
|
| 273 |
+
3. If you ran experiments...
|
| 274 |
+
|
| 275 |
+
(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] We cite all the data we used in the experiment section. And we will release code in personal GitHub repository.
|
| 276 |
+
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] In the experiment section, we specify implementation details for all methods, and all data we used.
|
| 277 |
+
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] We report error bars for optimization-based methods which have uncertainties.
|
| 278 |
+
(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] We included in the implementation details of the experiments section.
|
| 279 |
+
|
| 280 |
+
4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
|
| 281 |
+
|
| 282 |
+
(a) If your work uses existing assets, did you cite the creators? [Yes] We have cited all the data we used.
|
| 283 |
+
(b) Did you mention the license of the assets? [N/A]
|
| 284 |
+
(c) Did you include any new assets either in the supplemental material or as a URL? [N/A]
|
| 285 |
+
(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
|
| 286 |
+
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
|
| 287 |
+
|
| 288 |
+
5. If you used crowdsourcing or conducted research with human subjects...
|
| 289 |
+
|
| 290 |
+
(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
|
| 291 |
+
(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
|
| 292 |
+
(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
|
parse/train/4c1EiEvivpx/4c1EiEvivpx_content_list.json
ADDED
|
@@ -0,0 +1,1190 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Neural Scene Flow Prior ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
348,
|
| 8 |
+
122,
|
| 9 |
+
648,
|
| 10 |
+
147
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Xueqian Li∗1,2 Jhony Kaesemodel Pontes1 Simon Lucey2 1Argo AI 2The University of Adelaide ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
266,
|
| 19 |
+
195,
|
| 20 |
+
732,
|
| 21 |
+
226
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Abstract ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
462,
|
| 31 |
+
261,
|
| 32 |
+
535,
|
| 33 |
+
277
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Before the deep learning revolution, many perception algorithms were based on runtime optimization in conjunction with a strong prior/regularization penalty. A prime example of this in computer vision is optical and scene flow. Supervised learning has largely displaced the need for explicit regularization. Instead, they rely on large amounts of labeled data to capture prior statistics, which are not always readily available for many problems. Although optimization is employed to learn the neural network, the weights of this network are frozen at runtime. As a result, these learning solutions are domain-specific and do not generalize well to other statistically different scenarios. This paper revisits the scene flow problem that relies predominantly on runtime optimization and strong regularization. A central innovation here is the inclusion of a neural scene flow prior, which uses the architecture of neural networks as a new type of implicit regularizer. Unlike learning-based scene flow methods, optimization occurs at runtime, and our approach needs no offline datasets—making it ideal for deployment in new environments such as autonomous driving. We show that an architecture based exclusively on multilayer perceptrons (MLPs) can be used as a scene flow prior. Our method attains competitive—if not better—results on scene flow benchmarks. Also, our neural prior’s implicit and continuous scene flow representation allows us to estimate dense long-term correspondences across a sequence of point clouds. The dense motion information is represented by scene flow fields where points can be propagated through time by integrating motion vectors. We demonstrate such a capability by accumulating a sequence of lidar point clouds. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
295,
|
| 43 |
+
766,
|
| 44 |
+
599
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 Introduction ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
631,
|
| 55 |
+
310,
|
| 56 |
+
648
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "State-of-the-art results have recently been achieved by learning-based models [17, 30, 47, 60, 68] for the scene flow problem—the task of estimating 3D motion fields from dynamic scenes. However, such models heavily rely on large-scale data to capture prior knowledge, which is not always readily available. Scene flow annotations are expensive, and most methods train on synthetic and unrealistic scenarios to fine-tune on small real datasets. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
666,
|
| 66 |
+
825,
|
| 67 |
+
734
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Poor generalization to unseen, out-of-the-distribution inputs is another problem. Prior information is generally limited to the statistics of the data used for training. Real-world applications such as autonomous driving require robust solutions to low-level vision tasks such as depth, optical, and scene flow estimation that work in statistically different scenarios. Inspired by recent innovations that make use of coordinate-based networks (i.e., pixels or 3D positions as inputs) [9, 36, 37, 39, 56] for 3D modeling and rendering, we investigate the use of such networks to regularize the scene flow problem without any learning directly from point clouds. Optimization happens at runtime, and instead of learning a prior from data, the network structure itself captures the prior information. It is not limited to the statistics of a specific dataset. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
741,
|
| 77 |
+
825,
|
| 78 |
+
866
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Optimizing neural networks at execution time is not new. Ulyanov et al. [63] showed that a randomly initialized convolutional network could be used as a handcrafted prior for standard inverse problems such as image denoising, super-resolution, and inpainting. Ding and Feng [12] proposed a runtime optimization method (DeepMapping) for rigid pose estimation using deep neural networks. Although such deep image priors, deep mapping, and coordinate-based networks for neural scene representations have been successfully applied for inverse problems, rendering, and rigid registration, none has yet investigated (to the best of our knowledge) the use of network-based priors for regularizing scene flow directly from point clouds. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
92,
|
| 88 |
+
485,
|
| 89 |
+
325
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 1
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Our proposed neural prior is based on a simple multilayer perceptron (MLP) architecture, and we show it is powerful enough to regularize scene flow given two point clouds implicitly. The input to the network is 3D points, and the output is a regularized scene flow. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
333,
|
| 99 |
+
483,
|
| 100 |
+
415
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Our neural prior allows for a continuous scene flow representation instead of discrete such as in graph Laplacian-based priors, e.g., [45]. We show how the flow fields captured by our neural ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
422,
|
| 110 |
+
483,
|
| 111 |
+
477
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "image",
|
| 117 |
+
"img_path": "images/577ce96cb63b1a5d41e8fdcb8a10e98dc3b649626ddf6ea769bcd2e8f56dbedf.jpg",
|
| 118 |
+
"image_caption": [
|
| 119 |
+
"Figure 1: Our neural scene flow prior method achieved higher accuracy while being ${ \\sim } 1 0 \\times$ faster than the recent runtime optimization method graph prior [45]. The evaluation was on the KITTI Scene Flow test set, where each point cloud size varies from $1 4 \\mathrm { k }$ to $6 8 \\mathrm { k }$ points. In our method, we fixed the number of hidden layers in the MLP to 4 and varied the number of hidden units. In the graph prior method, we varied the number of neighbors to create the graph. Accuracy uses the $A c c _ { 5 }$ metric as defined in the experiments section. Learningbased methods might still be $1 0 \\times - 1 0 0 \\times$ faster than the runtime optimization methods, but they still lack generalization and have memory issues when dealing with large point clouds—with tens of thousands of points. "
|
| 120 |
+
],
|
| 121 |
+
"image_footnote": [],
|
| 122 |
+
"bbox": [
|
| 123 |
+
496,
|
| 124 |
+
92,
|
| 125 |
+
821,
|
| 126 |
+
234
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "prior can be employed to estimate long-term correspondences across a sequence of point clouds. The continuous scene flow allows for better integration of motions across time. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
478,
|
| 136 |
+
821,
|
| 137 |
+
505
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "Our results are promising and competitive to supervised [30], self-supervised [38, 68], and nonlearning methods [1, 45] (see Table 1). Our method also scales to real-world point clouds with tens of thousands of points while achieving better accuracy and time complexity than recent runtime optimization methods (see Fig. 1). ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
176,
|
| 146 |
+
511,
|
| 147 |
+
825,
|
| 148 |
+
566
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "2 Related work ",
|
| 155 |
+
"text_level": 1,
|
| 156 |
+
"bbox": [
|
| 157 |
+
176,
|
| 158 |
+
587,
|
| 159 |
+
316,
|
| 160 |
+
604
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "Non-learning-based scene flow Scene flow is the uplift from the optical flow, which is proposed by Vedula et al. [64] as the non-rigid motion field in the 3D space. The authors proposed the optimization-based scene flow estimation using image sequences to infer reconstruction knowledge of the flow in 3D surfaces. Successive RGB/RGB-D image-based work [4, 18–21, 27, 43, 44, 50] used probability-based estimation, coarse-to-fine techniques, 6-DoF parameterization, or object segmentation, etc., to improve accuracy and computation time. Although image-based scene flow methods are widely used, direct estimation of the scene flow from the point cloud is still possible through non-rigid registration methods, such as [1, 10, 26, 42]. In this paper, we focus on point cloud-based scene flow estimation. ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
174,
|
| 169 |
+
619,
|
| 170 |
+
825,
|
| 171 |
+
743
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "Learning-based scene flow Image-based learning methods [6, 51, 54, 60, 70] use convolution and data supervision to solve scene flow from monocular or RGB-D images with the available depth information. Other image-based methods [22, 23, 32, 52, 53] take care of extra occlusion cues in the large-scale autonomous driving scenes. Point-based learning methods have become more prevalent with the rapid development of point cloud feature learning [28, 48, 49, 65, 67]. FlowNet3D [30] is a seminal work that estimates scene flow using PointNet+ $^ +$ [49]. Successive work [17, 31, 47, 66] extends point-based learning methods using different feature extraction techniques. One obvious drawback of these supervised learning methods is the demand for sufficient ground truth labels. Besides, supervised methods lack generalizability while eventually only fitting domain-specific data. Self-supervised methods [25, 38, 61, 68], on the other hand, replaced the loss between the prediction and the ground truth flow with a point distance loss to use the point cloud itself as supervision. ",
|
| 178 |
+
"bbox": [
|
| 179 |
+
174,
|
| 180 |
+
758,
|
| 181 |
+
825,
|
| 182 |
+
911
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 1
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "Self-supervision can adapt to different datasets and maintain certain generalizability. Nonetheless, massive training data are still required for sufficient learning. ",
|
| 189 |
+
"bbox": [
|
| 190 |
+
173,
|
| 191 |
+
90,
|
| 192 |
+
825,
|
| 193 |
+
119
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 2
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "The graph Laplacian method Graph Laplacian [2] is widely used to smooth the surface in mesh processing [5, 14, 57, 58], point cloud denoising [11, 71], etc. Here we talk about the recent scene flow estimation using Graph Laplacian [45]. The method explicitly constructed a graph of the point cloud to constrain the non-rigid scene flow as rigid within a specific range. While as a dataless runtime optimization, the method is heavily affected by the hyperparameters of the graph and loses scalability when the point cloud becomes larger or the neighbors in the graph grow. ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
174,
|
| 202 |
+
133,
|
| 203 |
+
825,
|
| 204 |
+
218
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 2
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "Deep neural prior, implicit functions, and neural rendering Although large-scale data helps in feature representation [59], end-to-end learning still requires high computation capacity and readily available training datasets. Instead, Ulyanov et al. [63] proposed a new style of optimization that uses a convolutional neural network to infer prior knowledge from the network architecture. One broader interest is to extend the idea of the network being an image function to the 3D shape modeling, and implicitly represent the continuous shape as level sets of neural networks. By directly mapping the 3D input to binary occupancy nets [9, 36], or signed distance functions [3, 39, 55], it is powerful to model the 3D geometries in a continuous space using the coordinate-based network. The following Scene Representation Networks [56] takes advantage of the coordinate-based network and renders view synthetic images. Mildenhall et al. proposed a seminal work NeRF [37], which is a novel way to do neural volume rendering using both point positions and viewing directions based on the coordinate-based network. Dynamic scene synthesis work [13, 16, 29, 40, 46, 62, 69] follows the NeRF framework, and integrates the motions to generate dynamic scenes. Some of the work [16, 29] use scene flow to further constrain or segment dynamic scenes. An interesting work that solves for the rigid alignment between point clouds using runtime optimization is DeepMapping [12]. However, this work only deals with rigid motion, and the network architecture is more complex than coordinate-based networks. In this work, we are interested in coordinate-based networks to address the large-scale, real-world scene flow problem. ",
|
| 211 |
+
"bbox": [
|
| 212 |
+
174,
|
| 213 |
+
233,
|
| 214 |
+
825,
|
| 215 |
+
481
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 2
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "3 Approach ",
|
| 222 |
+
"text_level": 1,
|
| 223 |
+
"bbox": [
|
| 224 |
+
174,
|
| 225 |
+
501,
|
| 226 |
+
287,
|
| 227 |
+
518
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 2
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "Problem definition Let $S _ { 1 }$ and $S _ { 2 }$ be two 3D point clouds sampled from a dynamic scene at time $t$ -1 and $t$ . The number of points in each point cloud, $| S _ { 1 } |$ and $| S _ { 2 } |$ , are typically different and not in correspondence. A 3D point $\\mathbf { p } \\in S _ { 1 }$ moving from time $t \\mathrm { - } 1$ to time $t$ can be modeled by a translational vector (or flow vector) $\\bar { \\mathbf { f } } \\in \\mathbb { R } ^ { 3 }$ , where $\\mathbf { p ^ { \\prime } } = \\mathbf { p } + \\mathbf { f }$ . The collection of flow vectors for all 3D points is the scene flow $\\mathcal { F } = \\{ \\mathbf { f } _ { i } \\} _ { i = 1 } ^ { | S _ { 1 } | }$ . ",
|
| 234 |
+
"bbox": [
|
| 235 |
+
173,
|
| 236 |
+
531,
|
| 237 |
+
825,
|
| 238 |
+
607
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "Optimization We want to optimize for a scene flow $\\mathcal { F }$ that minimizes the distance between the two point clouds, $S _ { 1 }$ and $S _ { 2 }$ . Given the non-rigidity assumption of the scene, the optimization is inherently unconstrained. Thus, a regularization term C is necessary to constrain the motion field. We therefore solve for scene flow as ",
|
| 245 |
+
"bbox": [
|
| 246 |
+
173,
|
| 247 |
+
618,
|
| 248 |
+
825,
|
| 249 |
+
675
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "equation",
|
| 255 |
+
"img_path": "images/206835b510edd42b62d8275987d68999cc088c13bd3e6d629f5d9582df1f7a80.jpg",
|
| 256 |
+
"text": "$$\n\\mathcal { F } ^ { * } = \\underset { \\mathcal { F } } { \\arg \\operatorname* { m i n } } \\sum _ { \\mathbf { p } \\in S _ { 1 } } \\mathbf { D } \\left( \\mathbf { p } + \\mathbf { f } , S _ { 2 } \\right) + \\lambda \\mathbf { C } ,\n$$",
|
| 257 |
+
"text_format": "latex",
|
| 258 |
+
"bbox": [
|
| 259 |
+
362,
|
| 260 |
+
679,
|
| 261 |
+
633,
|
| 262 |
+
714
|
| 263 |
+
],
|
| 264 |
+
"page_idx": 2
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "text",
|
| 268 |
+
"text": "where $\\mathrm { D }$ is a function to compute the distance from the perturbed point $\\mathbf { p }$ by the flow vector f to its closest neighbor in $S _ { 2 }$ . C is a regularizer (e.g., Laplacian regularizer), and $\\lambda$ is a weighting factor for the regularizer. In this paper, we want to investigate using a neural prior to regularize the scene flow. ",
|
| 269 |
+
"bbox": [
|
| 270 |
+
174,
|
| 271 |
+
719,
|
| 272 |
+
825,
|
| 273 |
+
763
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 2
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "3.1 Neural scene flow prior ",
|
| 280 |
+
"text_level": 1,
|
| 281 |
+
"bbox": [
|
| 282 |
+
174,
|
| 283 |
+
779,
|
| 284 |
+
375,
|
| 285 |
+
794
|
| 286 |
+
],
|
| 287 |
+
"page_idx": 2
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"type": "text",
|
| 291 |
+
"text": "Learning-based scene flow methods learn scene flow priors from a large number of examples. As in Deep Image Prior [63], we want to investigate if the structure of a neural network by itself is sufficient to capture a scene flow prior without any learning. ",
|
| 292 |
+
"bbox": [
|
| 293 |
+
173,
|
| 294 |
+
804,
|
| 295 |
+
825,
|
| 296 |
+
847
|
| 297 |
+
],
|
| 298 |
+
"page_idx": 2
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"type": "text",
|
| 302 |
+
"text": "Here we use a neural network as an implicit regularizer. The parameters are optimized as ",
|
| 303 |
+
"bbox": [
|
| 304 |
+
173,
|
| 305 |
+
852,
|
| 306 |
+
758,
|
| 307 |
+
867
|
| 308 |
+
],
|
| 309 |
+
"page_idx": 2
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "equation",
|
| 313 |
+
"img_path": "images/5a4520b308c33dab7b9391eb44dfc87a9a7c95af3442ccd98abf1a633d9cc974.jpg",
|
| 314 |
+
"text": "$$\n\\Theta ^ { * } = \\underset { \\Theta } { \\arg \\operatorname* { m i n } } \\sum _ { \\mathbf { p } \\in S _ { 1 } } \\mathrm { D } \\left( \\mathbf { p } + g \\left( \\mathbf { p } ; \\Theta \\right) , S _ { 2 } \\right) ,\n$$",
|
| 315 |
+
"text_format": "latex",
|
| 316 |
+
"bbox": [
|
| 317 |
+
356,
|
| 318 |
+
875,
|
| 319 |
+
640,
|
| 320 |
+
909
|
| 321 |
+
],
|
| 322 |
+
"page_idx": 2
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "text",
|
| 326 |
+
"text": "where $g$ is a neural network parameterized by $\\Theta$ to regularize the scene flow $\\mathcal { F }$ . The input to $g$ is $\\mathbf { p }$ which is the point to be disturbed by the flow. The output of $g$ is $\\mathbf { f }$ and thus $\\mathbf { f } ^ { * } = g \\left( \\mathbf { p } ; \\mathbf { \\bar { \\Theta } } \\right)$ . For the distance function D, we define it as ",
|
| 327 |
+
"bbox": [
|
| 328 |
+
173,
|
| 329 |
+
90,
|
| 330 |
+
823,
|
| 331 |
+
133
|
| 332 |
+
],
|
| 333 |
+
"page_idx": 3
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"type": "equation",
|
| 337 |
+
"img_path": "images/72a5ddc38fee78f131ae4bde8331a3a84ef18dd8369ae3d03e127830010ffdef.jpg",
|
| 338 |
+
"text": "$$\n\\mathbf { D } \\left( \\mathbf { p } , \\pmb { S } \\right) = \\operatorname* { m i n } _ { \\mathbf { x } \\in \\pmb { S } } \\| \\mathbf { p } - \\mathbf { x } \\| _ { 2 } ^ { 2 } .\n$$",
|
| 339 |
+
"text_format": "latex",
|
| 340 |
+
"bbox": [
|
| 341 |
+
410,
|
| 342 |
+
141,
|
| 343 |
+
588,
|
| 344 |
+
165
|
| 345 |
+
],
|
| 346 |
+
"page_idx": 3
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "text",
|
| 350 |
+
"text": "In practice, we use it bidirectionally for both point sets, which is equivalent to Chamfer distance [15]. ",
|
| 351 |
+
"bbox": [
|
| 352 |
+
171,
|
| 353 |
+
174,
|
| 354 |
+
825,
|
| 355 |
+
190
|
| 356 |
+
],
|
| 357 |
+
"page_idx": 3
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "text",
|
| 361 |
+
"text": "The objective in Eq. (2), is for the forward scene flow $\\mathcal { F }$ , which is the one we are interested in. However, it has been shown in [30, 38], that a cycle consistency regularizer encourages better scene flow estimations. The extra regularizer simply enforces the backward flow to be similar to the forward flow, $\\mathcal { F } _ { b w d } \\approx \\mathcal { F }$ . The optimal backward flow is defined as $\\mathbf { f } _ { b w d } ^ { * } = g \\left( \\mathbf { p } ^ { \\prime } ; \\mathbf { \\Theta } \\Theta _ { b w d } ^ { * } \\right)$ , where $\\mathbf { p } ^ { \\prime }$ is the shifted point by the forward flow as $\\mathbf { p } + \\mathbf { f }$ . Note that the network $g$ is the same but with different parameters, $\\Theta _ { b w d }$ . Using the backward flow as an additional constraint, the optimal network weights are solved as ",
|
| 362 |
+
"bbox": [
|
| 363 |
+
174,
|
| 364 |
+
195,
|
| 365 |
+
826,
|
| 366 |
+
292
|
| 367 |
+
],
|
| 368 |
+
"page_idx": 3
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"type": "equation",
|
| 372 |
+
"img_path": "images/afd69c14313134c67b18cda9e78debe25311c406f3939cc9732958125d30b20d.jpg",
|
| 373 |
+
"text": "$$\n\\Theta ^ { * } , \\Theta _ { b w d } ^ { * } = \\underset { \\Theta , \\Theta _ { b w d } } { \\mathrm { a r g } \\mathrm { m i n } } \\sum _ { \\mathbf { p } \\in S _ { 1 } } \\mathbf { D } \\left( \\mathbf { p } + g \\left( \\mathbf { p } ; \\Theta \\right) , S _ { 2 } \\right) + \\sum _ { \\mathbf { p } ^ { \\prime } \\in S _ { 1 } ^ { \\prime } } \\mathbf { D } \\left( \\mathbf { p } ^ { \\prime } + g \\left( \\mathbf { p } ^ { \\prime } ; \\Theta _ { b w d } \\right) , S _ { 1 } \\right) ,\n$$",
|
| 374 |
+
"text_format": "latex",
|
| 375 |
+
"bbox": [
|
| 376 |
+
217,
|
| 377 |
+
297,
|
| 378 |
+
779,
|
| 379 |
+
335
|
| 380 |
+
],
|
| 381 |
+
"page_idx": 3
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"type": "text",
|
| 385 |
+
"text": "where $ { \\boldsymbol { S } } _ { 1 } ^ { \\prime }$ is the shifted $S _ { 1 }$ by the forward flow, i.e., $S _ { 1 } ^ { \\prime } = S _ { 1 } { + } \\mathcal { F }$ . Please find more details in the supplementary material. For the network $g$ , we use MLPs with ReLU activations. The objective function in Eq. (4) can be optimized by gradient descent techniques using off-the-shelf frameworks with automatic differentiation. We show in the experiments section how the architecture of the neural prior affects performance by varying the number of hidden layers and units. ",
|
| 386 |
+
"bbox": [
|
| 387 |
+
173,
|
| 388 |
+
344,
|
| 389 |
+
825,
|
| 390 |
+
415
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 3
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "text",
|
| 396 |
+
"text": "Why use a neural scene flow prior? Deep learning relies on massive amounts of data and computational resources to capture prior statistics. Although learning methods have achieved impressive results in most tasks, they still struggle when deployed in environments where the statistics are different from those captured during learning. Our intuition is that a neural prior acts as a strong implicit regularizer that constrains dynamic motion fields to be as smooth as possible. A neural scene flow prior also scales to large scenes while achieving high-fidelity results at a low computational cost. Our proposed method with 8 hidden layers and 128 hidden units has about $1 1 6 \\mathrm { k }$ parameters. FlowNet3D [30], for example, has about 1.2M parameters. Our method has ${ \\sim } 1 0 \\times$ fewer parameters than the state-of-the-art supervised methods while achieving competitive, if not better, results. Lastly, our deep scene flow prior captures a continuous flow field that allows us to perform better scene flow interpolation across a sequence of point clouds. ",
|
| 397 |
+
"bbox": [
|
| 398 |
+
174,
|
| 399 |
+
431,
|
| 400 |
+
825,
|
| 401 |
+
584
|
| 402 |
+
],
|
| 403 |
+
"page_idx": 3
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"type": "text",
|
| 407 |
+
"text": "4 Experiments ",
|
| 408 |
+
"text_level": 1,
|
| 409 |
+
"bbox": [
|
| 410 |
+
174,
|
| 411 |
+
607,
|
| 412 |
+
312,
|
| 413 |
+
625
|
| 414 |
+
],
|
| 415 |
+
"page_idx": 3
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"type": "text",
|
| 419 |
+
"text": "We evaluated the performance (accuracy, generalizability, and computational cost) of our neural prior for scene flow on synthetic and real-world datasets. We performed experiments on different neural network settings and analyzed the performance of the neural prior to regularizing scene flow. Remarkably, we show that a simple MLP-based prior to regularize scene flow is enough to achieve competitive results to the state-of-the-art scene flow methods. ",
|
| 420 |
+
"bbox": [
|
| 421 |
+
174,
|
| 422 |
+
640,
|
| 423 |
+
825,
|
| 424 |
+
709
|
| 425 |
+
],
|
| 426 |
+
"page_idx": 3
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"type": "text",
|
| 430 |
+
"text": "Datasets We used four scene flow datasets: 1) FlyingThings3D [33] which is an extensive collection of randomly moving synthetic objects. We used the preprocessed data from [30]; 2) KITTI [34, 35] which has real-world self-driving scenes. We used the subset released by [30]; 3) Argoverse [8] and 4) nuScenes [7] are two large-scale autonomous driving datasets with challenging dynamic scenes. However, there are no official scene flow annotations. We followed the data processing method in [45] to collect pseudo-ground-truth scene flow. Ground points were removed from lidar point clouds as in [30] (please refer to the supplementary material for more details). ",
|
| 431 |
+
"bbox": [
|
| 432 |
+
173,
|
| 433 |
+
727,
|
| 434 |
+
825,
|
| 435 |
+
824
|
| 436 |
+
],
|
| 437 |
+
"page_idx": 3
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"type": "text",
|
| 441 |
+
"text": "Metrics We employed the widely used metrics as in [30, 38, 45, 68] to evaluate our method, which are: $\\mathcal { E }$ to denote the end-point error (EPE), which is the mean absolute distance of two point clouds; $A c c _ { 5 }$ to denote the accuracy in percentage of estimated flows when $\\mathcal { E } < 0 . 0 5 \\mathrm { m }$ or $\\mathcal { E } ^ { \\prime } < 5 \\%$ , where $\\mathcal { E } ^ { \\prime }$ is the relative error; $A c c _ { 1 0 }$ denotes the percentage of estimated flows where $\\mathcal { E } < 0 . 1 \\mathrm { m }$ or $\\mathcal { E } ^ { \\prime } < 1 0 \\%$ ; and $\\theta _ { \\epsilon }$ which is the mean angle error between the estimated and ground-truth scene flows. ",
|
| 442 |
+
"bbox": [
|
| 443 |
+
174,
|
| 444 |
+
842,
|
| 445 |
+
825,
|
| 446 |
+
911
|
| 447 |
+
],
|
| 448 |
+
"page_idx": 3
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"type": "text",
|
| 452 |
+
"text": "Implementation details We defined our neural prior for scene flow as a simple coordinate-based MLP architecture with 8 hidden layers, a fixed length of 128 for the hidden units, Rectified Linear Unit (ReLU) activation and shared weights across points. The network input is the 3D point cloud $\\mathbf { P } _ { t - 1 }$ , and the output is the scene flow F. We used PyTorch [41] for the implementation and optimized the objective function with Adam [24]. The weights were randomly initialized. We set a fixed learning rate of $8 \\mathrm { { e } - 3 }$ and run the optimization for 5k iterations with early stopping on the loss. For our settings and datasets, we found the optimization to mostly converge in less than 1k iterations. All experiments were run on a machine with an NVIDIA Quadro P5000 GPU and a 16 Intel(R) Xeon(R) W-2145 CPU $\\textcircled { a } 3 . 7 0 \\mathrm { G H z }$ . ",
|
| 453 |
+
"bbox": [
|
| 454 |
+
174,
|
| 455 |
+
90,
|
| 456 |
+
825,
|
| 457 |
+
215
|
| 458 |
+
],
|
| 459 |
+
"page_idx": 4
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"type": "text",
|
| 463 |
+
"text": "Training setup for the learning-based methods We used the publicly available implementation of the learning-based methods to perform our experiments. The training settings for each method are: FlowNet3D and full-supervised PointPWC-Net: trained on FlyingThings3D with supervision; and self-supervised Just Go with the Flow and PointPWC-Net: trained on FlyingThings3D with supervision and fine-tuned on domain-matched datasets with self-supervision (i.e., fine-tuned and tested on statistically similar data, KITTI, nuScenes, Argoverse respectively). Note that FlowNet3D and full-supervised PointPWC-Net was only trained on the synthetic FlyingThings3D to demonstrate the poor generalizability of learning-based methods to other domains. Just Go with the Flow and self-supervised PointPWC-Net were trained using self-supervision, and although they do not require ground-truth annotations, they still require large-scale datasets for training to achieve competitive performance. Note that these self-supervised methods were both pretrained on fullylabeled FlyingThings3D to provide adequate full supervision. ",
|
| 464 |
+
"bbox": [
|
| 465 |
+
173,
|
| 466 |
+
231,
|
| 467 |
+
825,
|
| 468 |
+
396
|
| 469 |
+
],
|
| 470 |
+
"page_idx": 4
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"type": "text",
|
| 474 |
+
"text": "Optimization setup for the non-learning methods Non-rigid ICP [1] was originally proposed for mesh registration. We adapted it for point cloud registration. A graph prior was recently proposed in [45] to optimize scene flow from point clouds. We implemented the method using the hyperparameters defined by the authors. The weight for the graph prior term is set to 10, the number of neighbors $k$ to build the $k$ -NN graph, if not explicitly specified, is set to 50, the learning rate to 0.1, and the number of iterations to $1 . 5 \\mathrm { k }$ . ",
|
| 475 |
+
"bbox": [
|
| 476 |
+
174,
|
| 477 |
+
412,
|
| 478 |
+
483,
|
| 479 |
+
577
|
| 480 |
+
],
|
| 481 |
+
"page_idx": 4
|
| 482 |
+
},
|
| 483 |
+
{
|
| 484 |
+
"type": "image",
|
| 485 |
+
"img_path": "images/6ed524c4c1b3c3aa1576df39f5e971c34bb88f937c39f48cb63284eb463c5f50.jpg",
|
| 486 |
+
"image_caption": [
|
| 487 |
+
"Figure 2: We analyzed the performance of our method on the KITTI test set when varying the number of hidden layers and hidden units of the MLP architecture. Accuracy is the $A c c _ { 5 }$ metric. "
|
| 488 |
+
],
|
| 489 |
+
"image_footnote": [],
|
| 490 |
+
"bbox": [
|
| 491 |
+
496,
|
| 492 |
+
412,
|
| 493 |
+
823,
|
| 494 |
+
551
|
| 495 |
+
],
|
| 496 |
+
"page_idx": 4
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"type": "text",
|
| 500 |
+
"text": "4.1 Choosing the neural prior architecture ",
|
| 501 |
+
"text_level": 1,
|
| 502 |
+
"bbox": [
|
| 503 |
+
174,
|
| 504 |
+
594,
|
| 505 |
+
480,
|
| 506 |
+
609
|
| 507 |
+
],
|
| 508 |
+
"page_idx": 4
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"type": "text",
|
| 512 |
+
"text": "Fig. 2 shows how the performance of our method ",
|
| 513 |
+
"bbox": [
|
| 514 |
+
178,
|
| 515 |
+
621,
|
| 516 |
+
485,
|
| 517 |
+
635
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 4
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "text",
|
| 523 |
+
"text": "is affected when varying the neural prior MLP architecture: number of hidden layers and hidden units. The experiments were performed on the KITTI test set and all points included (i.e., without point sampling). The average number of points for the KITTI dataset is about $3 0 \\mathrm { k }$ . We ran our method five times with different random seeds to include the uncertainty levels in the plot. ",
|
| 524 |
+
"bbox": [
|
| 525 |
+
174,
|
| 526 |
+
633,
|
| 527 |
+
825,
|
| 528 |
+
689
|
| 529 |
+
],
|
| 530 |
+
"page_idx": 4
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"type": "text",
|
| 534 |
+
"text": "Overall, the performance of our method improved as we increased the number of hidden layers and hidden units. For small numbers of hidden layers (e.g., 1 and 2), the performance deteriorated when the number of hidden units is large, around 128 and 256 (or $2 ^ { 7 }$ and $2 ^ { 8 }$ ). We chose the MLP architecture with the best performance with relatively low computation time for our following experiments: 8 hidden layers and 128 $( 2 ^ { 7 } )$ hidden units. ",
|
| 535 |
+
"bbox": [
|
| 536 |
+
174,
|
| 537 |
+
695,
|
| 538 |
+
825,
|
| 539 |
+
765
|
| 540 |
+
],
|
| 541 |
+
"page_idx": 4
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"type": "text",
|
| 545 |
+
"text": "4.2 Comparing to other methods ",
|
| 546 |
+
"text_level": 1,
|
| 547 |
+
"bbox": [
|
| 548 |
+
176,
|
| 549 |
+
781,
|
| 550 |
+
413,
|
| 551 |
+
796
|
| 552 |
+
],
|
| 553 |
+
"page_idx": 4
|
| 554 |
+
},
|
| 555 |
+
{
|
| 556 |
+
"type": "text",
|
| 557 |
+
"text": "Table 1 shows how our method stands against other state-of-the-art methods on different datasets and metrics. We set the number of points to 2,048, which follows the experimental protocols as in FlowNet3D [30] and Graph prior [45]. We ran the experiments 5 times to report uncertainties for runtime optimization methods (i.e., our method and the graph prior method [45]) with uncertainties for each run. The learning-based methods and non-rigid ICP are deterministic during runtime. ",
|
| 558 |
+
"bbox": [
|
| 559 |
+
174,
|
| 560 |
+
808,
|
| 561 |
+
825,
|
| 562 |
+
877
|
| 563 |
+
],
|
| 564 |
+
"page_idx": 4
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"type": "text",
|
| 568 |
+
"text": "Our method achieved better performance in most datasets and metrics. We considered the well-known Non-rigid ICP as a baseline for the non-learning methods ( ). Our method outperformed the recent graph prior method by a large margin. The supervised FlowNet3D and PointPWC-Net (using fullsupervision loss) methods ( ) had better performance on FlyingThings3D because they were trained on it with supervision. If the dataset is out-of-the-distribution, these supervised methods produced unreliable results. The self-supervised methods ( ), Just Go with the Flow and PointPWC-Net (using self-supervision loss), despite not being exposed to ground-truth labels during training, still generated better results than supervised methods—showing that self-supervision is an important direction for scene flow estimation. Still, it is remarkable that with a simple MLP regularizer and an optimization framework, our method can robustly estimate scene flow from point clouds with great accuracy. ",
|
| 569 |
+
"bbox": [
|
| 570 |
+
174,
|
| 571 |
+
883,
|
| 572 |
+
821,
|
| 573 |
+
911
|
| 574 |
+
],
|
| 575 |
+
"page_idx": 4
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"type": "table",
|
| 579 |
+
"img_path": "images/6ab9aa581db998063030612dcf0d4e21ccba62bf34b0e1718a0f307f150bf1a7.jpg",
|
| 580 |
+
"table_caption": [
|
| 581 |
+
"Table 1: Performance of our method and others across different datasets and metrics. are supervised methods trained on the synthetic FlyingThings3D dataset. are self-supervised methods trained on FlyingThings3D with supervision and fine-tuned with self-supervision on matched datasets. $\\bullet$ are non-learning methods that do not rely on training data. All experiments were run with 2,048 points. ↑ means larger values are better while $\\downarrow$ means smaller values are better. We did no report standard deviations smaller than 1e−2. "
|
| 582 |
+
],
|
| 583 |
+
"table_footnote": [],
|
| 584 |
+
"table_body": "<table><tr><td></td><td colspan=\"4\">FlyingThings3D [33] Train:19,967 samples,Test: 2,000 samples</td><td colspan=\"4\">nuScenes Scene Flow [7] Train:1,513 samples,Test:310 samples</td></tr><tr><td></td><td colspan=\"4\"></td><td colspan=\"4\"></td></tr><tr><td></td><td>ε(m)↓</td><td>Acc5(%) ↑</td><td>Acc10(%) ↑</td><td>0e(rad)↓</td><td>ε(m)↓</td><td>Acc5(%) ↑</td><td>Acc10(%) ↑</td><td>θe(rad)↓</td></tr><tr><td>·FlowNet3D [30]</td><td>0.134</td><td>22.64</td><td>54.17</td><td>0.305</td><td>0.505</td><td>2.12</td><td>10.81</td><td>0.620</td></tr><tr><td>·PointPWC-Net [68]</td><td>0.121</td><td>29.09</td><td>61.70</td><td>0.229</td><td>0.442</td><td>7.64</td><td>22.32</td><td>0.497</td></tr><tr><td>Just Go with the Flow [38]</td><td colspan=\"4\"></td><td>0.625</td><td>6.09</td><td>0.139 22.42</td><td>0.432</td></tr><tr><td>·PointPWC-Net [68]</td><td></td><td></td><td></td><td></td><td>0.431</td><td>6.87</td><td></td><td>0.406</td></tr><tr><td>·Non-rigid ICP [1]</td><td>0.339 0.255</td><td>14.05</td><td>35.68</td><td>0.480</td><td>0.402</td><td>6.99</td><td>21.01</td><td>0.492 0.337</td></tr><tr><td>•Graph prior [45] ·Ours</td><td>0.234</td><td>16.56±0.02 19.16±0.23</td><td>42.05±0.02 46.74±0.46</td><td>0.362 0.341</td><td>0.289 0.175±0.01</td><td>20.12±0.01 35.18±1.32</td><td>43.54±0.02 63.45±0.46</td><td>0.279±0.04</td></tr><tr><td></td><td></td><td colspan=\"3\">KITTI Scene Flow [34,35]</td><td colspan=\"4\"></td></tr><tr><td></td><td colspan=\"4\">Train:100 samples,Test: 50 samples</td><td colspan=\"4\">Argoverse Scene Flow [8] Train:2,691 samples,Test: 212 samples</td></tr><tr><td></td><td>ε(m)↓</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>·FlowNet3D [30]</td><td></td><td>Acc5(%) ↑</td><td>Acc10(%) ↑</td><td>θ(rad)↓</td><td>ε(m)↓</td><td>Acc5(%) ↑</td><td>Acc10(%) ↑</td><td>θ(rad)↓</td></tr><tr><td>·PointPWC-Net [68]</td><td>0.199 0.142</td><td>10.44 29.91</td><td>38.89 59.83</td><td>0.386 0.239</td><td>0.455 0.405</td><td>1.34 8.25</td><td>6.12 25.47</td><td>0.736 0.674</td></tr><tr><td>• Just Go with the Flow [38]</td><td>0.218</td><td></td><td>34.38</td><td>0.254</td><td>0.542</td><td>8.80</td><td>20.28</td><td>0.715</td></tr><tr><td>·PointPWC-Net [68]</td><td>0.177</td><td>10.17 13.29</td><td>42.15</td><td>0.272</td><td>0.409</td><td>9.79</td><td>29.31</td><td>0.643</td></tr><tr><td>•Non-rigid ICP[1]</td><td>0.338</td><td>22.06</td><td>43.03</td><td>0.460</td><td>0.461</td><td>4.27</td><td>13.90</td><td>0.741</td></tr><tr><td>·Graph prior [45]</td><td>0.099</td><td>63.60±0.09</td><td>81.18±0.08</td><td>0.176</td><td>0.257</td><td>25.24±0.04</td><td>47.60±0.02</td><td>0.467</td></tr><tr><td>●Ours</td><td>0.050±0.01</td><td>81.68±2.00</td><td>93.19±1.30</td><td>0.133±0.01</td><td>0.159±0.01</td><td>38.43±0.48</td><td>63.08±0.59</td><td>0.374±0.01</td></tr></table>",
|
| 585 |
+
"bbox": [
|
| 586 |
+
171,
|
| 587 |
+
179,
|
| 588 |
+
825,
|
| 589 |
+
411
|
| 590 |
+
],
|
| 591 |
+
"page_idx": 5
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"type": "text",
|
| 595 |
+
"text": "",
|
| 596 |
+
"bbox": [
|
| 597 |
+
174,
|
| 598 |
+
439,
|
| 599 |
+
825,
|
| 600 |
+
550
|
| 601 |
+
],
|
| 602 |
+
"page_idx": 5
|
| 603 |
+
},
|
| 604 |
+
{
|
| 605 |
+
"type": "text",
|
| 606 |
+
"text": "Our PointPWC-Net results were different from those reported in the PointPWC-Net paper. The reasons are: In the official PointPWC-Net implementation, there is a threshold to limit the lidar point cloud within 35 meters of distance from the center. In our experiments, we used all points available in all ranges (up to $8 5 \\mathrm { m }$ ). Lidar point clouds get sparser as the distance increases, making it challenging to estimate scene flow in far ranges and sparse regions. Nevertheless, we did not shy away from this fact in our experiments. Also, in the original PointPWC-Net experiments, the authors used 8,192 points. In ours, we used 2,048 points. Naturally, there exists a performance gap between our reported results and theirs. We decided to use 2,048 points to follow the experiment protocols proposed in FlowNet3D [30] and graph prior [45] to facilitate comparisons across different datasets and models. Although simple and tested on sparse point clouds (2,048 points), our method achieved impressive results on different datasets. Please find further details and additional experiments in the supplementary material. ",
|
| 607 |
+
"bbox": [
|
| 608 |
+
174,
|
| 609 |
+
556,
|
| 610 |
+
825,
|
| 611 |
+
722
|
| 612 |
+
],
|
| 613 |
+
"page_idx": 5
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"type": "text",
|
| 617 |
+
"text": "4.3 Estimating scene flow from large point clouds with high density ",
|
| 618 |
+
"text_level": 1,
|
| 619 |
+
"bbox": [
|
| 620 |
+
174,
|
| 621 |
+
739,
|
| 622 |
+
651,
|
| 623 |
+
755
|
| 624 |
+
],
|
| 625 |
+
"page_idx": 5
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"type": "text",
|
| 629 |
+
"text": "Real-world point clouds collected from depth sensors such as lidar typically have tens of thousands of points. We evaluated the performance of our method on large point clouds and compared it against the graph prior method. The KITTI and Argoverse Scene Flow datasets were used, given that both have large point clouds with high density. ",
|
| 630 |
+
"bbox": [
|
| 631 |
+
174,
|
| 632 |
+
766,
|
| 633 |
+
825,
|
| 634 |
+
821
|
| 635 |
+
],
|
| 636 |
+
"page_idx": 5
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"type": "text",
|
| 640 |
+
"text": "Fig. 3 shows the performance on the KITTI Scene Flow dataset, in terms of accuracy and computational time, of our method and the graph prior method when varying the number of points. Our method’s accuracy $( A c c _ { 5 } )$ increased as the number of points grew until around $2 0 \\mathrm { k }$ points and then saturated, while the computational time slowly increased. In contrast, the graph prior achieved lower accuracy and dramatic growth in computation. The computational complexity of our MLPbased prior grows linearly in the number of points, ${ \\mathcal { O } } ( n )$ , while the graph prior grows quadratically in the number of points, $O ( n ^ { 2 } )$ . The graph prior relies on the construction of a graph Laplacian matrix to use as a regularizer (i.e., $\\mathbf { L } \\in \\mathbb { R } ^ { n \\times n }$ , where $n$ is the number of points). ",
|
| 641 |
+
"bbox": [
|
| 642 |
+
174,
|
| 643 |
+
827,
|
| 644 |
+
825,
|
| 645 |
+
911
|
| 646 |
+
],
|
| 647 |
+
"page_idx": 5
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"type": "image",
|
| 651 |
+
"img_path": "images/7bfd34e47dd43d03bf9fd7c3f68ff60d0fcf519317338b9f561fcf07286cd321.jpg",
|
| 652 |
+
"image_caption": [
|
| 653 |
+
"Figure 3: Performance of our neural prior and the graph prior [45] when varying the number of points. Our method achieved higher accuracy $( A c c _ { 5 } )$ and better time complexity. Results were averaged over the KITTI Scene Flow dataset. "
|
| 654 |
+
],
|
| 655 |
+
"image_footnote": [],
|
| 656 |
+
"bbox": [
|
| 657 |
+
173,
|
| 658 |
+
116,
|
| 659 |
+
488,
|
| 660 |
+
251
|
| 661 |
+
],
|
| 662 |
+
"page_idx": 6
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"type": "table",
|
| 666 |
+
"img_path": "images/dec1293dd77c7f46fe348db526b88149aab86e894544a646963d3fe64636fa34.jpg",
|
| 667 |
+
"table_caption": [
|
| 668 |
+
"Table 2: Performance of our neural prior and the graph prior [45] when using all points available. Our method achieved better performance on all metrics by a margin while being ${ \\sim } 5 \\times$ faster if $k { = } 5 0$ and ${ \\sim } 1 0 \\times$ faster if $k { = } 2 0 0$ (for KITTI). "
|
| 669 |
+
],
|
| 670 |
+
"table_footnote": [],
|
| 671 |
+
"table_body": "<table><tr><td></td><td colspan=\"5\">KITTI Scene Flow Average number of points:~30k</td></tr><tr><td></td><td>m↓ (m)</td><td>Acc5↑ (%)</td><td>Acc10 ↑ (%)</td><td>↓ (rad)</td><td>Time↓ (s)</td></tr><tr><td>Graph prior (k=50)</td><td>0.225</td><td>65.50</td><td>70.32</td><td>0.277</td><td>162.97</td></tr><tr><td>Graph prior (k=200)</td><td>0.082</td><td>84.00</td><td>88.45</td><td>0.141</td><td>310.12</td></tr><tr><td>Ours</td><td>0.025</td><td>95.68</td><td>98.00</td><td>0.085</td><td>38.33</td></tr><tr><td></td><td colspan=\"5\">Argoverse Scene Flow Average number of points:~50k</td></tr><tr><td></td><td>m↓ (m)</td><td>Acc5↑ (%</td><td>AcC10 ↑ (%)</td><td>0↓ (rad)</td><td>Time↓ (s)</td></tr><tr><td>Graph prior (k=50)</td><td>0.249</td><td>46.92</td><td>61.72</td><td>0.494</td><td>410.21</td></tr><tr><td>Ours</td><td>0.043</td><td>86.04</td><td>94.07</td><td>0.244</td><td>84.46</td></tr></table>",
|
| 672 |
+
"bbox": [
|
| 673 |
+
506,
|
| 674 |
+
166,
|
| 675 |
+
825,
|
| 676 |
+
332
|
| 677 |
+
],
|
| 678 |
+
"page_idx": 6
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"type": "text",
|
| 682 |
+
"text": "",
|
| 683 |
+
"bbox": [
|
| 684 |
+
173,
|
| 685 |
+
359,
|
| 686 |
+
821,
|
| 687 |
+
388
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 6
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "text",
|
| 693 |
+
"text": "The accuracy of the graph prior method degraded after $1 0 \\mathrm { k }$ points. The graph regularizer needs more than $5 \\mathrm { k }$ iterations for higher density point clouds to converge to a reasonable solution or carefully tuned schedulers to accelerate its convergence. Moreover, the $k$ -NN graph is built with 50 neighbors, and for higher density point clouds, larger graphs might be necessary for a better regularization. ",
|
| 694 |
+
"bbox": [
|
| 695 |
+
174,
|
| 696 |
+
393,
|
| 697 |
+
825,
|
| 698 |
+
450
|
| 699 |
+
],
|
| 700 |
+
"page_idx": 6
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"type": "text",
|
| 704 |
+
"text": "Table 2 shows a quantitative comparison between our method and the graph prior method on the KITTI and Argoverse Scene Flow datasets when using all points. Our method achieved better performance on all metrics. We also reported results for the graph prior method when setting the number of neighbors, $k$ , to 200. According to our results in Fig. 1, the scene flow accuracy saturated after $k { = } 2 0 0$ . Fig. 4 shows a qualitative example of a scene flow estimation using our method. ",
|
| 705 |
+
"bbox": [
|
| 706 |
+
174,
|
| 707 |
+
457,
|
| 708 |
+
825,
|
| 709 |
+
526
|
| 710 |
+
],
|
| 711 |
+
"page_idx": 6
|
| 712 |
+
},
|
| 713 |
+
{
|
| 714 |
+
"type": "text",
|
| 715 |
+
"text": "These results show that our method scales to large point clouds with high density, and gain a great improvement in performance with much denser point clouds. In contrast, training supervised/selfsupervised models with high-density point clouds is not always practical due to high memory usage. Typically, such models are trained with up to $^ \\mathrm { 8 k }$ points. ",
|
| 716 |
+
"bbox": [
|
| 717 |
+
174,
|
| 718 |
+
532,
|
| 719 |
+
826,
|
| 720 |
+
588
|
| 721 |
+
],
|
| 722 |
+
"page_idx": 6
|
| 723 |
+
},
|
| 724 |
+
{
|
| 725 |
+
"type": "text",
|
| 726 |
+
"text": "Performance and inference time tradeoffs Estimating scene flow with runtime optimization is usually slower than using learning-based methods $1 0 \\times - 1 0 0 \\times$ slower). The trade-off, however, depends on the application. If robustness/generalizability is not an issue but rather the inference time, our proposed objective can train a self-supervised model and act as a surrogate of our non-learning method but inheriting the faster inference time from the trained model. We show an example of lidar point cloud densification (Section 4.6) to generate denser point clouds that can be used for robotics applications such as offline mapping, creating denser depth maps, etc., that would not require real-time inference. ",
|
| 727 |
+
"bbox": [
|
| 728 |
+
174,
|
| 729 |
+
604,
|
| 730 |
+
464,
|
| 731 |
+
838
|
| 732 |
+
],
|
| 733 |
+
"page_idx": 6
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"type": "image",
|
| 737 |
+
"img_path": "images/9906cdfb7e25e2253620a37a71751575201cd46bb2da6f98e13546830603e5da.jpg",
|
| 738 |
+
"image_caption": [
|
| 739 |
+
"Figure 5: Example of a failure case. Partial scene from FlyingThings3D. Our nearest-neighbor-based loss might fail when handling large missing parts, occlusions, and bad correspondences. Green points are the target, and red points are the shifted blue points by the estimated scene flow (yellow arrows). "
|
| 740 |
+
],
|
| 741 |
+
"image_footnote": [],
|
| 742 |
+
"bbox": [
|
| 743 |
+
495,
|
| 744 |
+
606,
|
| 745 |
+
808,
|
| 746 |
+
763
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 6
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "4.4 Limitations ",
|
| 753 |
+
"text_level": 1,
|
| 754 |
+
"bbox": [
|
| 755 |
+
174,
|
| 756 |
+
857,
|
| 757 |
+
294,
|
| 758 |
+
871
|
| 759 |
+
],
|
| 760 |
+
"page_idx": 6
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"type": "text",
|
| 764 |
+
"text": "Although our method achieved better computational complexity than other non-learning-based methods, the inference time is still limiting for some applications that demand real-time inferences. ",
|
| 765 |
+
"bbox": [
|
| 766 |
+
174,
|
| 767 |
+
883,
|
| 768 |
+
823,
|
| 769 |
+
911
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 6
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "image",
|
| 775 |
+
"img_path": "images/c3e17dbc70f1b47198675197465005670258e14285403e83ec79ed89d060791c.jpg",
|
| 776 |
+
"image_caption": [
|
| 777 |
+
"Figure 4: Qualitative example of a scene flow estimation using our proposed method. The complex and highly dynamic driving scene is from the Argoverse Scene Flow dataset. The scene flow estimated by our method is close to the ground truth. We also show a prediction using the supervised FlowNet3D method trained on FlyingThings3D and fine-tuned on the KITTI Scene Flow dataset. Note how the scene flow deviated from the ground truth when the inference was performed on an out-of-the-distribution sample. The scene flow color encodes the magnitude (color intensity) and direction (angle) of the flow vectors. For example, the purplish vehicles are heading northeast. "
|
| 778 |
+
],
|
| 779 |
+
"image_footnote": [],
|
| 780 |
+
"bbox": [
|
| 781 |
+
174,
|
| 782 |
+
88,
|
| 783 |
+
823,
|
| 784 |
+
415
|
| 785 |
+
],
|
| 786 |
+
"page_idx": 7
|
| 787 |
+
},
|
| 788 |
+
{
|
| 789 |
+
"type": "text",
|
| 790 |
+
"text": "Another limitation is that the loss function we used relies on nearest neighbors, which might find bad correspondences due to partial point clouds and occlusions. Fig. 5 shows a failure case because of the nearest-neighbor-based distance loss. Few corresponding points due to missing parts in the scene might lead to incorrect flow estimations. ",
|
| 791 |
+
"bbox": [
|
| 792 |
+
174,
|
| 793 |
+
549,
|
| 794 |
+
825,
|
| 795 |
+
606
|
| 796 |
+
],
|
| 797 |
+
"page_idx": 7
|
| 798 |
+
},
|
| 799 |
+
{
|
| 800 |
+
"type": "text",
|
| 801 |
+
"text": "4.5 A continuous scene flow field ",
|
| 802 |
+
"text_level": 1,
|
| 803 |
+
"bbox": [
|
| 804 |
+
176,
|
| 805 |
+
622,
|
| 806 |
+
413,
|
| 807 |
+
637
|
| 808 |
+
],
|
| 809 |
+
"page_idx": 7
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"type": "text",
|
| 813 |
+
"text": "Our neural prior implicitly regularizes the scene flow through the coordinate-based MLP network. Thus, our method allows for a continuous scene flow representation instead of a discrete representation such as in graph-based priors. ",
|
| 814 |
+
"bbox": [
|
| 815 |
+
174,
|
| 816 |
+
647,
|
| 817 |
+
825,
|
| 818 |
+
690
|
| 819 |
+
],
|
| 820 |
+
"page_idx": 7
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"type": "text",
|
| 824 |
+
"text": "An advantage of a continuous scene flow representation is that we can reuse the optimal network weights to estimate dense long-term correspondences across a sequence of point clouds (see Section 4.6). Fig. 6 shows how the estimated scene flow and the continuous flow field change as the optimization converges to a solution. ",
|
| 825 |
+
"bbox": [
|
| 826 |
+
174,
|
| 827 |
+
695,
|
| 828 |
+
825,
|
| 829 |
+
752
|
| 830 |
+
],
|
| 831 |
+
"page_idx": 7
|
| 832 |
+
},
|
| 833 |
+
{
|
| 834 |
+
"type": "text",
|
| 835 |
+
"text": "4.6 Application: scene flow integration ",
|
| 836 |
+
"text_level": 1,
|
| 837 |
+
"bbox": [
|
| 838 |
+
174,
|
| 839 |
+
768,
|
| 840 |
+
455,
|
| 841 |
+
784
|
| 842 |
+
],
|
| 843 |
+
"page_idx": 7
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"type": "text",
|
| 847 |
+
"text": "Here we demonstrate how to use our method to perform scene flow integration. Given a temporal sequence of point sets, $\\{ S _ { 0 } , S _ { 1 } , S _ { 2 } , \\cdots , S _ { M } \\}$ , we first optimize for the pairwise scene flows, $\\{ \\bar { \\mathcal { F } } _ { 0 1 } , \\mathcal { F } _ { 1 2 } , \\cdot \\cdot \\cdot , \\mathcal { F } _ { M - 1 M } \\}$ , using our proposed method with the optimal neural prior parameters, $\\{ \\Theta _ { 0 \\to 1 } ^ { * } , \\Theta _ { 1 \\to 2 } ^ { * } , \\cdot \\cdot \\cdot , \\Theta _ { M \\cdot 1 \\to M } ^ { * } \\}$ , saved. Then, starting from $\\mathbf { f } _ { 0 \\to 1 }$ , we can integrate long-term flows using the classic Forward Euler method recursively for $m { = } 1 { : } M { - } 1$ iterations as ",
|
| 848 |
+
"bbox": [
|
| 849 |
+
174,
|
| 850 |
+
794,
|
| 851 |
+
825,
|
| 852 |
+
864
|
| 853 |
+
],
|
| 854 |
+
"page_idx": 7
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"type": "equation",
|
| 858 |
+
"img_path": "images/290b2be3a3a378be7162151c508f4917dce76b82a8d9d672092754e70a449947.jpg",
|
| 859 |
+
"text": "$$\n\\mathbf { f } _ { 0 m + 1 } = \\mathbf { f } _ { 0 m } + g ( \\mathbf { p } _ { 0 } + \\mathbf { f } _ { 0 m } ; \\mathbf { \\Theta } _ { m m + 1 } ^ { * } ) .\n$$",
|
| 860 |
+
"text_format": "latex",
|
| 861 |
+
"bbox": [
|
| 862 |
+
341,
|
| 863 |
+
892,
|
| 864 |
+
655,
|
| 865 |
+
910
|
| 866 |
+
],
|
| 867 |
+
"page_idx": 7
|
| 868 |
+
},
|
| 869 |
+
{
|
| 870 |
+
"type": "image",
|
| 871 |
+
"img_path": "images/7babee050ac204a5e621e3988b0b8bd4fe0ee47a084e7efd30aa5381f74778b7.jpg",
|
| 872 |
+
"image_caption": [
|
| 873 |
+
"Figure 6: Example showing how the estimated scene flow and the continuous flow field (bottom) given by our neural prior change as the optimization converges to a solution. We show a top-view dynamic driving scene from Argoverse Scene Flow. The scene flow color encodes the magnitude (color intensity) and direction (angle) of the flow vectors. For example, the purplish vehicles are heading northeast. The red arrow shows the position and direction of travel of the autonomous vehicle, which is stopped, waiting for a pedestrian to cross the street. Note how the predicted scene flow is close to the ground truth at iteration 2k. At iteration 0, the scene flow is random, given the random initialization of the neural prior. Thus having very small magnitudes for the random directions. As the optimization went on, the flow fields became better constrained. A simple way to interpret the flow fields is to imagine sampling a point at any location in the continuous scene flow field to recover an estimated flow vector. For example, imagine sampling a point around the orange region in the flow field at iteration $2 \\mathrm { k }$ (green arrow in the bottom right). The direction of the flow vector will be pointing southeast at a specific magnitude, similar to the vehicles in the orange region. "
|
| 874 |
+
],
|
| 875 |
+
"image_footnote": [],
|
| 876 |
+
"bbox": [
|
| 877 |
+
173,
|
| 878 |
+
88,
|
| 879 |
+
823,
|
| 880 |
+
324
|
| 881 |
+
],
|
| 882 |
+
"page_idx": 8
|
| 883 |
+
},
|
| 884 |
+
{
|
| 885 |
+
"type": "text",
|
| 886 |
+
"text": "This gives the long-term scene flow $\\mathcal { F } _ { 0 M } = \\{ ( \\mathbf { f } _ { 0 M } ) _ { i } \\} _ { i = 0 } ^ { | S _ { 0 } | }$ , from ${ \\cal S } _ { 0 } { \\cal S } _ { M }$ . Note that we are not relying on discrete nearest-neighbor-based interpolations. Our neural scene flow prior is a continuous representation that naturally provides continuous scene flow estimations. Fig. 7 shows an example of an Argoverse scene where we applied such a technique to integrate 10 point clouds into a single frame to densify the point cloud. ",
|
| 887 |
+
"bbox": [
|
| 888 |
+
174,
|
| 889 |
+
539,
|
| 890 |
+
825,
|
| 891 |
+
612
|
| 892 |
+
],
|
| 893 |
+
"page_idx": 8
|
| 894 |
+
},
|
| 895 |
+
{
|
| 896 |
+
"type": "text",
|
| 897 |
+
"text": "5 Conclusion ",
|
| 898 |
+
"text_level": 1,
|
| 899 |
+
"bbox": [
|
| 900 |
+
174,
|
| 901 |
+
632,
|
| 902 |
+
297,
|
| 903 |
+
650
|
| 904 |
+
],
|
| 905 |
+
"page_idx": 8
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"type": "text",
|
| 909 |
+
"text": "We show that how hand-designed coordinate-based network architecture can serve as a new type of implicit regularizer in the runtime optimization for the scene flow problem. Our neural prior gets rid of the need for massive labeled/unlabeled training data while being scalable with dense point clouds. Additionally, since we infer prior knowledge from the network architectures instead of from data, our approach can generalize to out-of-the-distribution scenarios as compared to learning-based methods. The continuous flow representation also allows for flow integration across a long sequence that can be used in many robotics applications such as offline mapping. We believe this paper shows a promising direction for large-scale, real-world scene flow estimation without data supervision. ",
|
| 910 |
+
"bbox": [
|
| 911 |
+
174,
|
| 912 |
+
664,
|
| 913 |
+
826,
|
| 914 |
+
775
|
| 915 |
+
],
|
| 916 |
+
"page_idx": 8
|
| 917 |
+
},
|
| 918 |
+
{
|
| 919 |
+
"type": "text",
|
| 920 |
+
"text": "Broader impact ",
|
| 921 |
+
"text_level": 1,
|
| 922 |
+
"bbox": [
|
| 923 |
+
174,
|
| 924 |
+
796,
|
| 925 |
+
308,
|
| 926 |
+
813
|
| 927 |
+
],
|
| 928 |
+
"page_idx": 8
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"type": "text",
|
| 932 |
+
"text": "Our proposed neural scene flow prior allows for estimating 3D motion fields from large-scale dynamic scenes without annotating massive data but preserving generalizability—making it useful for scenarios where motion prediction is required. Especially in computer vision and robotics communities, robust scene flow estimations is crucial. For example, autonomous vehicles need to predict future distribution of the surrounding objects to avoid catastrophe in dynamic environments; safe human-computer interaction is enabled with precise dynamic flow predictions. Our work also encourages further exploration in the combination of the innovative coordinate-based networks and classical runtime optimization algorithm. This dataless approach offers an affordable solution for many industrial problems without adequate supervision (e.g., autonomous driving). ",
|
| 933 |
+
"bbox": [
|
| 934 |
+
174,
|
| 935 |
+
827,
|
| 936 |
+
823,
|
| 937 |
+
911
|
| 938 |
+
],
|
| 939 |
+
"page_idx": 8
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"type": "image",
|
| 943 |
+
"img_path": "images/cdd654298f0a1f841aa96d169666b291d33e24d2ec537989e7069db918de6334.jpg",
|
| 944 |
+
"image_caption": [
|
| 945 |
+
"Figure 7: Example of a scene flow integration to densify an Argoverse lidar point cloud. The left and middle columns are a top and front view of the point cloud, respectively. The rightmost column shows the accumulated point cloud projected onto the image. Note the smearing effect on the dynamic objects when rigidly accumulating the point clouds (middle row). Accumulation using our neural prior nicely produced a denser point cloud while taking care of all dynamic objects in the scene. Here, rigid means that the point cloud accumulation was performed using a rigid registration method (i.e., ICP) where rigid 6-DoF poses are used for the registrations. "
|
| 946 |
+
],
|
| 947 |
+
"image_footnote": [],
|
| 948 |
+
"bbox": [
|
| 949 |
+
174,
|
| 950 |
+
88,
|
| 951 |
+
823,
|
| 952 |
+
304
|
| 953 |
+
],
|
| 954 |
+
"page_idx": 9
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"type": "text",
|
| 958 |
+
"text": "",
|
| 959 |
+
"bbox": [
|
| 960 |
+
176,
|
| 961 |
+
440,
|
| 962 |
+
821,
|
| 963 |
+
483
|
| 964 |
+
],
|
| 965 |
+
"page_idx": 9
|
| 966 |
+
},
|
| 967 |
+
{
|
| 968 |
+
"type": "text",
|
| 969 |
+
"text": "However, as AI-based research, it could be misused by malicious groups for nefarious purposes. For example, the collected data might contain sensitive information that potentially invades privacy, and can be used for illegal data trading. Moreover, such research has the potential to be used in autonomous weapons and military drones. The potential evil use of our method needs attention and needs to be prevented. We hope to motivate the community to take full advantage of the innovations of this work to benefit society. ",
|
| 970 |
+
"bbox": [
|
| 971 |
+
174,
|
| 972 |
+
488,
|
| 973 |
+
825,
|
| 974 |
+
571
|
| 975 |
+
],
|
| 976 |
+
"page_idx": 9
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"type": "text",
|
| 980 |
+
"text": "Acknowledgments and Disclosure of Funding ",
|
| 981 |
+
"text_level": 1,
|
| 982 |
+
"bbox": [
|
| 983 |
+
174,
|
| 984 |
+
592,
|
| 985 |
+
553,
|
| 986 |
+
609
|
| 987 |
+
],
|
| 988 |
+
"page_idx": 9
|
| 989 |
+
},
|
| 990 |
+
{
|
| 991 |
+
"type": "text",
|
| 992 |
+
"text": "The authors would like to thank Chen-Hsuan Lin for useful discussions through the project, review and help with section 3. We thank Haosen Xing for careful review of the entire manuscript and assistance in several parts of the paper, Jianqiao Zheng for helpful discussions. We thank all anonymous reviewers for their valuable comments and suggestions to make our paper stronger. ",
|
| 993 |
+
"bbox": [
|
| 994 |
+
174,
|
| 995 |
+
625,
|
| 996 |
+
825,
|
| 997 |
+
680
|
| 998 |
+
],
|
| 999 |
+
"page_idx": 9
|
| 1000 |
+
},
|
| 1001 |
+
{
|
| 1002 |
+
"type": "text",
|
| 1003 |
+
"text": "References ",
|
| 1004 |
+
"text_level": 1,
|
| 1005 |
+
"bbox": [
|
| 1006 |
+
174,
|
| 1007 |
+
699,
|
| 1008 |
+
266,
|
| 1009 |
+
715
|
| 1010 |
+
],
|
| 1011 |
+
"page_idx": 9
|
| 1012 |
+
},
|
| 1013 |
+
{
|
| 1014 |
+
"type": "text",
|
| 1015 |
+
"text": "[1] Brian Amberg, Sami Romdhani, and Thomas Vetter. Optimal step nonrigid ICP algorithms for surface registration. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1–8. IEEE, 2007. 2, 5, 6 \n[2] Rie Kubota Ando and Tong Zhang. Learning on graph with Laplacian regularization. Neural Information Processing Systems (NeurIPS), 19:25, 2007. 3 \n[3] Matan Atzmon and Yaron Lipman. SAL: Sign agnostic learning of shapes from raw data. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2565–2574, 2020. 3 \n[4] Tali Basha, Yael Moses, and Nahum Kiryati. Multi-view scene flow estimation: A view centered variational approach. International Journal of Computer Vision (IJCV), 101(1):6–21, 2013. 2 \n[5] Alexander I Bobenko and Boris A Springborn. A discrete Laplace–Beltrami operator for simplicial surfaces. Discrete & Computational Geometry, 38(4):740–756, 2007. 3 \n[6] Fabian Brickwedde, Steffen Abraham, and Rudolf Mester. Mono-SF: Multi-view geometry meets singleview depth for monocular scene flow estimation of dynamic traffic scenes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2780–2790, 2019. 2 \n[7] Holger Caesar, Varun Bankiti, Alex H Lang, Sourabh Vora, Venice Erin Liong, Qiang Xu, Anush Krishnan, Yu Pan, Giancarlo Baldan, and Oscar Beijbom. nuScenes: A multimodal dataset for autonomous driving. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 11621–11631, 2020. 4, 6 \n[8] Ming-Fang Chang, John Lambert, Patsorn Sangkloy, Jagjeet Singh, Slawomir Bak, Andrew Hartnett, De Wang, Peter Carr, Simon Lucey, Deva Ramanan, et al. Argoverse: 3D tracking and forecasting with rich maps. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 8748–8757, 2019. 4, 6 \n[9] Zhiqin Chen and Hao Zhang. Learning implicit fields for generative shape modeling. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5939–5948, 2019. 1, 3 \n[10] Haili Chui and Anand Rangarajan. A new point matching algorithm for non-rigid registration. Computer Vision and Image Understanding (CVIU), 89(2-3):114–141, 2003. 2 \n[11] Chinthaka Dinesh, Gene Cheung, and Ivan V Bajic. Point cloud denoising via feature graph laplacian ´ regularization. IEEE Transactions on Image Processing, 29:4143–4158, 2020. 3 \n[12] Li Ding and Chen Feng. DeepMapping: Unsupervised map estimation from multiple point clouds. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8650–8659, 2019. 2, 3 \n[13] Yilun Du, Yinan Zhang, Hong-Xing Yu, Joshua B Tenenbaum, and Jiajun Wu. Neural radiance flow for 4D view synthesis and video processing. arXiv e-prints, pages arXiv–2012, 2020. 3 \n[14] Marvin Eisenberger, Zorah Lahner, and Daniel Cremers. Smooth shells: Multi-scale shape registration with functional maps. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 12265–12274, 2020. 3 \n[15] Haoqiang Fan, Hao Su, and Leonidas J Guibas. A point set generation network for 3D object reconstruction from a single image. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 605–613, 2017. 4 \n[16] Chen Gao, Ayush Saraf, Johannes Kopf, and Jia-Bin Huang. Dynamic view synthesis from dynamic monocular video. arXiv preprint arXiv:2105.06468, 2021. 3 \n[17] Xiuye Gu, Yijie Wang, Chongruo Wu, Yong Jae Lee, and Panqu Wang. HPLFlownet: Hierarchical permutohedral lattice flownet for scene flow estimation on large-scale point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3254–3263, 2019. 1, 2 \n[18] Simon Hadfield and Richard Bowden. Kinecting the dots: Particle based scene flow from depth sensors. In Proceedings of the International Conference on Computer Vision (ICCV), pages 2290–2295. IEEE, 2011. 2 \n[19] Simon Hadfield and Richard Bowden. Scene particles: Unregularized particle-based scene flow estimation. IEEE Transactions on Pattern Analysis and Machine Intelligence (PAMI), 36(3):564–576, 2013. 2 \n[20] Michael Hornacek, Andrew Fitzgibbon, and Carsten Rother. SphereFlow: 6 DoF scene flow from RGB-D pairs. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3526–3533, 2014. 2 \n[21] Frédéric Huguet and Frédéric Devernay. A variational method for scene flow estimation from stereo sequences. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1–7. IEEE, 2007. 2 \n[22] Junhwa Hur and Stefan Roth. Self-supervised monocular scene flow estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 7396–7405, 2020. 2 \n[23] Huaizu Jiang, Deqing Sun, Varun Jampani, Zhaoyang Lv, Erik Learned-Miller, and Jan Kautz. SENSE: A shared encoder network for scene-flow estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3195–3204, 2019. 2 \n[24] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Yoshua Bengio and Yann LeCun, editors, Proceedings of the International Conference on Learning Representations (ICLR), 2015. 5 \n[25] Yair Kittenplon, Yonina C Eldar, and Dan Raviv. FlowStep3D: Model unrolling for self-supervised scene flow estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2021. 2 \n[26] Hao Li, Robert W Sumner, and Mark Pauly. Global correspondence optimization for non-rigid registration of depth scans. In Computer Graphics Forum, volume 27, pages 1421–1430. Wiley Online Library, 2008. 2 \n[27] Rui Li and Stan Sclaroff. Multi-scale 3D scene flow from binocular stereo sequences. Computer Vision and Image Understanding (CVIU), 110(1):75–90, 2008. 2 \n[28] Yangyan Li, Rui Bu, Mingchao Sun, Wei Wu, Xinhan Di, and Baoquan Chen. PointCNN: Convolution on X-transformed points. Neural Information Processing Systems (NeurIPS), 31:820–830, 2018. 2 \n[29] Zhengqi Li, Simon Niklaus, Noah Snavely, and Oliver Wang. Neural scene flow fields for space-time view synthesis of dynamic scenes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2021. 3 \n[30] Xingyu Liu, Charles R Qi, and Leonidas J Guibas. FlowNet3D: Learning scene flow in 3D point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 529–537, 2019. 1, 2, 4, 5, 6 \n[31] Xingyu Liu, Mengyuan Yan, and Jeannette Bohg. MeteorNet: Deep learning on dynamic 3d point cloud sequences. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 9246–9255, 2019. 2 \n[32] Wei-Chiu Ma, Shenlong Wang, Rui Hu, Yuwen Xiong, and Raquel Urtasun. Deep rigid instance scene flow. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3614–3622, 2019. 2 \n[33] Nikolaus Mayer, Eddy Ilg, Philip Hausser, Philipp Fischer, Daniel Cremers, Alexey Dosovitskiy, and Thomas Brox. A large dataset to train convolutional networks for disparity, optical flow, and scene flow estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4040–4048, 2016. 4, 6 \n[34] Moritz Menze and Andreas Geiger. Object scene flow for autonomous vehicles. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3061–3070, 2015. 4, 6 \n[35] Moritz Menze, Christian Heipke, and Andreas Geiger. Joint 3D estimation of vehicles and scene flow. ISPRS Annals of the Photogrammetry, Remote Sensing and Spatial Information Sciences, 2:427, 2015. 4, 6 \n[36] Lars Mescheder, Michael Oechsle, Michael Niemeyer, Sebastian Nowozin, and Andreas Geiger. Occupancy networks: Learning 3d reconstruction in function space. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4460–4470, 2019. 1, 3 \n[37] Ben Mildenhall, Pratul P Srinivasan, Matthew Tancik, Jonathan T Barron, Ravi Ramamoorthi, and Ren Ng. NeRF: Representing scenes as neural radiance fields for view synthesis. In Proceedings of the European Conference on Computer Vision (ECCV), pages 405–421. Springer, 2020. 1, 3 \n[38] Himangi Mittal, Brian Okorn, and David Held. Just go with the flow: Self-supervised scene flow estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 11177– 11185, 2020. 2, 4, 6 \n[39] Jeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, and Steven Lovegrove. DeepSDF: Learning continuous signed distance functions for shape representation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 165–174, 2019. 1, 3 \n[40] Keunhong Park, Utkarsh Sinha, Jonathan T. Barron, Sofien Bouaziz, Dan B Goldman, Steven M. Seitz, and Ricardo Martin-Brualla. Deformable neural radiance fields. arXiv preprint arXiv:2011.12948, 2020. 3 \n[41] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. PyTorch: An imperative style, high-performance deep learning library. In Neural Information Processing Systems (NeurIPS), 2019. 5 \n[42] Mark Pauly, Niloy J Mitra, Joachim Giesen, Markus H Gross, and Leonidas J Guibas. Example-based 3D scan completion. In Symposium on Geometry Processing, pages 23–32, 2005. 2 \n[43] Jean-Philippe Pons, Renaud Keriven, and Olivier Faugeras. Multi-view stereo reconstruction and scene flow estimation with a global image-based matching score. International Journal of Computer Vision (IJCV), 72(2):179–193, 2007. 2 \n[44] J-P Pons, Renaud Keriven, O Faugeras, and Gerardo Hermosillo. Variational stereovision and 3D scene flow estimation with statistical similarity measures. In Proceedings of the International Conference on Computer Vision (ICCV), volume 2, pages 597–597. IEEE Computer Society, 2003. 2 \n[45] Jhony Kaesemodel Pontes, James Hays, and Simon Lucey. Scene flow from point clouds with or without learning. In Proceedings of the International Conference on 3D Vision (3DV). IEEE, 2020. 2, 3, 4, 5, 6, 7 \n[46] Albert Pumarola, Enric Corona, Gerard Pons-Moll, and Francesc Moreno-Noguer. D-NeRF: Neural Radiance Fields for Dynamic Scenes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2021. 3 \n[47] Gilles Puy, Alexandre Boulch, and Renaud Marlet. FLOT: Scene Flow on Point Clouds Guided by Optimal Transport. In Proceedings of the European Conference on Computer Vision (ECCV), 2020. 1, 2 \n[48] Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. PointNet: Deep learning on point sets for 3D classification and segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 652–660, 2017. 2 \n[49] Charles R Qi, Li Yi, Hao Su, and Leonidas J Guibas. PointNet $^ { + + }$ : Deep hierarchical feature learning on point sets in a metric space. In Neural Information Processing Systems (NeurIPS), pages 5105–5114, 2017. 2 \n[50] Julian Quiroga, Thomas Brox, Frédéric Devernay, and James Crowley. Dense semi-rigid scene flow estimation from rgbd images. In Proceedings of the European Conference on Computer Vision (ECCV), pages 567–582. Springer, 2014. 2 \n[51] Rishav Rishav, Ramy Battrawy, René Schuster, Oliver Wasenmüller, and Didier Stricker. DeepLiDARFlow: A deep learning architecture for scene flow estimation using monocular camera and sparse LiDAR. In Proceedings of the IEEE/RSJ Conference on Intelligent Robots and Systems (IROS), pages 10460–10467. IEEE, 2020. 2 \n[52] Rohan Saxena, René Schuster, Oliver Wasenmuller, and Didier Stricker. PWOC-3D: Deep occlusion-aware end-to-end scene flow estimation. In Proceedings of the IEEE Intelligent Vehicles Symposium (IV), pages 324–331. IEEE, 2019. 2 \n[53] René Schuster, Christian Unger, and Didier Stricker. A deep temporal fusion framework for scene flow using a learnable motion model and occlusions. In Proceedings of the IEEE Workshop on Applications of Computer Vision (WACV), pages 247–255, 2021. 2 \n[54] Lin Shao, Parth Shah, Vikranth Dwaracherla, and Jeannette Bohg. Motion-based object segmentation based on dense RGB-D scene flow. IEEE Robotics and Automation Letters, 3(4):3797–3804, 2018. 2 \n[55] Vincent Sitzmann, Julien Martel, Alexander Bergman, David Lindell, and Gordon Wetzstein. Implicit neural representations with periodic activation functions. Neural Information Processing Systems (NeurIPS), 33, 2020. 3 \n[56] Vincent Sitzmann, Michael Zollhoefer, and Gordon Wetzstein. Scene representation networks: Continuous 3D-structure-aware neural scene representations. Neural Information Processing Systems (NeurIPS), 32:1121–1132, 2019. 1, 3 \n[57] Olga Sorkine. Laplacian mesh processing. Eurographics (STARs), 29, 2005. 3 \n[58] Olga Sorkine and Marc Alexa. As-rigid-as-possible surface modeling. In Symposium on Geometry Processing, volume 4, pages 109–116, 2007. 3 \n[59] Chen Sun, Abhinav Shrivastava, Saurabh Singh, and Abhinav Gupta. Revisiting unreasonable effectiveness of data in deep learning era. In Proceedings of the International Conference on Computer Vision (ICCV), pages 843–852, 2017. 3 \n[60] Zachary Teed and Jia Deng. RAFT-3D: Scene flow using rigid-motion embeddings. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8375–8384, 2021. 1, 2 \n[61] Ivan Tishchenko, Sandro Lombardi, Martin Oswald, and Marc Pollefeys. Self-supervised learning of non-rigid residual flow and ego-motion. In Proceedings of the International Conference on 3D Vision (3DV), 2020. 2 \n[62] Edgar Tretschk, Ayush Tewari, Vladislav Golyanik, Michael Zollhöfer, Christoph Lassner, and Christian Theobalt. Non-rigid neural radiance fields: Reconstruction and novel view synthesis of a dynamic scene from monocular video, 2020. 3 \n[63] Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Deep image prior. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 9446–9454, 2018. 2, 3 \n[64] Sundar Vedula, Simon Baker, Peter Rander, Robert Collins, and Takeo Kanade. Three-dimensional scene flow. In Proceedings of the International Conference on Computer Vision (ICCV), volume 2, pages 722–729. IEEE, 1999. 2 \n[65] Yue Wang, Yongbin Sun, Ziwei Liu, Sanjay E Sarma, Michael M Bronstein, and Justin M Solomon. Dynamic graph CNN for learning on point clouds. ACM Transactions on Graphics (TOG), 38(5):1–12, 2019. 2 \n[66] Zirui Wang, Shuda Li, Henry Howard-Jenkins, Victor Prisacariu, and Min Chen. FlowNet3D $^ { + + }$ : Geometric losses for deep scene flow estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 91–98, 2020. 2 \n[67] Wenxuan Wu, Zhongang Qi, and Li Fuxin. PointConv: Deep convolutional networks on 3d point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 9621–9630, 2019. 2 \n[68] Wenxuan Wu, Zhi Yuan Wang, Zhuwen Li, Wei Liu, and Li Fuxin. PointPWC-Net: Cost volume on point clouds for (self-) supervised scene flow estimation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 88–107. Springer, 2020. 1, 2, 4, 6 \n[69] Wenqi Xian, Jia-Bin Huang, Johannes Kopf, and Changil Kim. Space-time neural irradiance fields for free-viewpoint video. arXiv preprint arXiv:2011.12950, 2020. 3 \n[70] Gengshan Yang and Deva Ramanan. Upgrading optical flow to 3D scene flow through optical expansion. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1334–1343, 2020. 2 \n[71] Jin Zeng, Gene Cheung, Michael Ng, Jiahao Pang, and Cheng Yang. 3D point cloud denoising using graph Laplacian regularization of a low dimensional manifold model. IEEE Transactions on Image Processing, 29:3474–3489, 2019. 3 ",
|
| 1016 |
+
"bbox": [
|
| 1017 |
+
179,
|
| 1018 |
+
726,
|
| 1019 |
+
826,
|
| 1020 |
+
911
|
| 1021 |
+
],
|
| 1022 |
+
"page_idx": 9
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"type": "text",
|
| 1026 |
+
"text": "",
|
| 1027 |
+
"bbox": [
|
| 1028 |
+
171,
|
| 1029 |
+
79,
|
| 1030 |
+
828,
|
| 1031 |
+
911
|
| 1032 |
+
],
|
| 1033 |
+
"page_idx": 10
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"type": "text",
|
| 1037 |
+
"text": "",
|
| 1038 |
+
"bbox": [
|
| 1039 |
+
171,
|
| 1040 |
+
79,
|
| 1041 |
+
826,
|
| 1042 |
+
911
|
| 1043 |
+
],
|
| 1044 |
+
"page_idx": 11
|
| 1045 |
+
},
|
| 1046 |
+
{
|
| 1047 |
+
"type": "text",
|
| 1048 |
+
"text": "",
|
| 1049 |
+
"bbox": [
|
| 1050 |
+
171,
|
| 1051 |
+
94,
|
| 1052 |
+
826,
|
| 1053 |
+
790
|
| 1054 |
+
],
|
| 1055 |
+
"page_idx": 12
|
| 1056 |
+
},
|
| 1057 |
+
{
|
| 1058 |
+
"type": "text",
|
| 1059 |
+
"text": "Checklist ",
|
| 1060 |
+
"text_level": 1,
|
| 1061 |
+
"bbox": [
|
| 1062 |
+
174,
|
| 1063 |
+
806,
|
| 1064 |
+
254,
|
| 1065 |
+
823
|
| 1066 |
+
],
|
| 1067 |
+
"page_idx": 12
|
| 1068 |
+
},
|
| 1069 |
+
{
|
| 1070 |
+
"type": "text",
|
| 1071 |
+
"text": "1. For all authors... ",
|
| 1072 |
+
"bbox": [
|
| 1073 |
+
214,
|
| 1074 |
+
834,
|
| 1075 |
+
339,
|
| 1076 |
+
848
|
| 1077 |
+
],
|
| 1078 |
+
"page_idx": 12
|
| 1079 |
+
},
|
| 1080 |
+
{
|
| 1081 |
+
"type": "text",
|
| 1082 |
+
"text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] We described the limitations in the experiment section, and we also provided failure cases. \n(c) Did you discuss any potential negative societal impacts of your work? [Yes] We discussed in the Broader Impact section \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
|
| 1083 |
+
"bbox": [
|
| 1084 |
+
238,
|
| 1085 |
+
853,
|
| 1086 |
+
825,
|
| 1087 |
+
911
|
| 1088 |
+
],
|
| 1089 |
+
"page_idx": 12
|
| 1090 |
+
},
|
| 1091 |
+
{
|
| 1092 |
+
"type": "text",
|
| 1093 |
+
"text": "",
|
| 1094 |
+
"bbox": [
|
| 1095 |
+
238,
|
| 1096 |
+
92,
|
| 1097 |
+
823,
|
| 1098 |
+
150
|
| 1099 |
+
],
|
| 1100 |
+
"page_idx": 13
|
| 1101 |
+
},
|
| 1102 |
+
{
|
| 1103 |
+
"type": "text",
|
| 1104 |
+
"text": "2. If you are including theoretical results... ",
|
| 1105 |
+
"bbox": [
|
| 1106 |
+
214,
|
| 1107 |
+
154,
|
| 1108 |
+
493,
|
| 1109 |
+
169
|
| 1110 |
+
],
|
| 1111 |
+
"page_idx": 13
|
| 1112 |
+
},
|
| 1113 |
+
{
|
| 1114 |
+
"type": "text",
|
| 1115 |
+
"text": "(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A] ",
|
| 1116 |
+
"bbox": [
|
| 1117 |
+
238,
|
| 1118 |
+
172,
|
| 1119 |
+
738,
|
| 1120 |
+
204
|
| 1121 |
+
],
|
| 1122 |
+
"page_idx": 13
|
| 1123 |
+
},
|
| 1124 |
+
{
|
| 1125 |
+
"type": "text",
|
| 1126 |
+
"text": "3. If you ran experiments... ",
|
| 1127 |
+
"bbox": [
|
| 1128 |
+
214,
|
| 1129 |
+
208,
|
| 1130 |
+
393,
|
| 1131 |
+
223
|
| 1132 |
+
],
|
| 1133 |
+
"page_idx": 13
|
| 1134 |
+
},
|
| 1135 |
+
{
|
| 1136 |
+
"type": "text",
|
| 1137 |
+
"text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] We cite all the data we used in the experiment section. And we will release code in personal GitHub repository. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] In the experiment section, we specify implementation details for all methods, and all data we used. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] We report error bars for optimization-based methods which have uncertainties. \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] We included in the implementation details of the experiments section. ",
|
| 1138 |
+
"bbox": [
|
| 1139 |
+
238,
|
| 1140 |
+
227,
|
| 1141 |
+
825,
|
| 1142 |
+
414
|
| 1143 |
+
],
|
| 1144 |
+
"page_idx": 13
|
| 1145 |
+
},
|
| 1146 |
+
{
|
| 1147 |
+
"type": "text",
|
| 1148 |
+
"text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
|
| 1149 |
+
"bbox": [
|
| 1150 |
+
215,
|
| 1151 |
+
419,
|
| 1152 |
+
823,
|
| 1153 |
+
433
|
| 1154 |
+
],
|
| 1155 |
+
"page_idx": 13
|
| 1156 |
+
},
|
| 1157 |
+
{
|
| 1158 |
+
"type": "text",
|
| 1159 |
+
"text": "(a) If your work uses existing assets, did you cite the creators? [Yes] We have cited all the data we used. \n(b) Did you mention the license of the assets? [N/A] \n(c) Did you include any new assets either in the supplemental material or as a URL? [N/A] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] ",
|
| 1160 |
+
"bbox": [
|
| 1161 |
+
238,
|
| 1162 |
+
436,
|
| 1163 |
+
825,
|
| 1164 |
+
571
|
| 1165 |
+
],
|
| 1166 |
+
"page_idx": 13
|
| 1167 |
+
},
|
| 1168 |
+
{
|
| 1169 |
+
"type": "text",
|
| 1170 |
+
"text": "5. If you used crowdsourcing or conducted research with human subjects... ",
|
| 1171 |
+
"bbox": [
|
| 1172 |
+
214,
|
| 1173 |
+
575,
|
| 1174 |
+
705,
|
| 1175 |
+
590
|
| 1176 |
+
],
|
| 1177 |
+
"page_idx": 13
|
| 1178 |
+
},
|
| 1179 |
+
{
|
| 1180 |
+
"type": "text",
|
| 1181 |
+
"text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
|
| 1182 |
+
"bbox": [
|
| 1183 |
+
238,
|
| 1184 |
+
594,
|
| 1185 |
+
825,
|
| 1186 |
+
684
|
| 1187 |
+
],
|
| 1188 |
+
"page_idx": 13
|
| 1189 |
+
}
|
| 1190 |
+
]
|
parse/train/4c1EiEvivpx/4c1EiEvivpx_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/4c1EiEvivpx/4c1EiEvivpx_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Bke4KsA5FX/Bke4KsA5FX.md
ADDED
|
@@ -0,0 +1,598 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# GENERATIVE CODE MODELING WITH GRAPHS
|
| 2 |
+
|
| 3 |
+
Marc Brockschmidt, Miltiadis Allamanis, Alexander Gaunt Microsoft Research
|
| 4 |
+
Cambridge, UK
|
| 5 |
+
{mabrocks,miallama,algaunt}@microsoft.com
|
| 6 |
+
|
| 7 |
+
Oleksandr Polozov Microsoft Research Redmond, WA, USA polozov@microsoft.com
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
Generative models for source code are an interesting structured prediction problem, requiring to reason about both hard syntactic and semantic constraints as well as about natural, likely programs. We present a novel model for this problem that uses a graph to represent the intermediate state of the generated output. Our model generates code by interleaving grammar-driven expansion steps with graph augmentation and neural message passing steps. An experimental evaluation shows that our new model can generate semantically meaningful expressions, outperforming a range of strong baselines.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
Learning to understand and generate programs is an important building block for procedural artificial intelligence and more intelligent software engineering tools. It is also an interesting task in the research of structured prediction methods: while imbued with formal semantics and strict syntactic rules, natural source code carries aspects of natural languages, since it acts as a means of communicating intent among developers. Early works in the area have shown that approaches from natural language processing can be applied successfully to source code (Hindle et al., 2012), whereas the programming languages community has had successes in focusing exclusively on formal semantics. More recently, methods handling both modalities (i.e., the formal and natural language aspects) have shown successes on important software engineering tasks (Raychev et al., 2015; Bichsel et al., 2016; Allamanis et al., 2018b) and semantic parsing (Yin & Neubig, 2017; Rabinovich et al., 2017).
|
| 16 |
+
|
| 17 |
+
However, current generative models of source code mostly focus on only one of these modalities at a time. For example, program synthesis tools based on enumeration and deduction (Solar-Lezama, 2008; Polozov & Gulwani, 2015; Feser et al., 2015; Feng et al., 2018) are successful at generating programs that satisfy some (usually incomplete) formal specification but are often obviously wrong on manual inspection, as they cannot distinguish unlikely from likely, “natural” programs. On the other hand, learned code models have succeeded in generating realistic-looking programs (Maddison & Tarlow, 2014; Bielik et al., 2016; Parisotto et al., 2017; Rabinovich et al., 2017; Yin & Neubig, 2017). However, these programs often fail to be semantically relevant, for example because variables are not used consistently.
|
| 18 |
+
|
| 19 |
+
In this work, we try to overcome these challenges for generative code models and present a general method for generative models that can incorporate structured information that is deterministically available at generation time. We focus our attention on generating source code and follow the ideas of program graphs (Allamanis et al., 2018b) that have been shown to learn semantically meaningful representations of (pre-existing) programs. To achieve this, we lift grammar-based tree decoder models into the graph setting, where the diverse relationships between various elements of the generated code can be modeled. For this, the syntax tree under generation is augmented with additional edges denoting known relationships (e.g., last use of variables). We then interleave the steps of the generative procedure with neural message passing (Gilmer et al., 2017) to compute more precise representations of the intermediate states of the program generation. This is fundamentally different from sequential generative models of graphs (Li et al., 2018; Samanta et al., 2018), which aim to generate all edges and nodes, whereas our graphs are deterministic augmentations of generated trees.
|
| 20 |
+
|
| 21 |
+
To summarize, we present $a$ ) a general graph-based generative procedure for highly structured objects, incorporating rich structural information; $b$ ) ExprGen, a new code generation task focused on generating small, but semantically complex expressions conditioned on source code context; and $c$ ) a comprehensive experimental evaluation of our generative procedure and a range of baseline methods from the literature.
|
| 22 |
+
|
| 23 |
+
<table><tr><td>Algorithm1 Pseudocode for Expand</td></tr><tr><td>Input: Context c,partial AST a,node v to expand 1:hy ← getRepresentation(c,a, v) 2: rhs ← pickProduction(u,hu) 3:for child node type l ∈ rhs do 4: (a,u)←insertChild(a,l) if l is nonterminal type then</td></tr></table>
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
Figure 1: Example for ExprGen, target expression to be generated is marked . Taken from BenchmarkDotNet, lightly edited for formatting.
|
| 27 |
+
|
| 28 |
+
# 2 BACKGROUND & TASK
|
| 29 |
+
|
| 30 |
+
The most general form of the code generation task is to produce a (partial) program in a programming language given some context information $c$ . This context information can be natural language (as in, e.g., semantic parsing), input-output examples (e.g., inductive program synthesis), partial program sketches, etc. Early methods generate source code as a sequence of tokens (Hindle et al., 2012; Hellendoorn & Devanbu, 2017) and sometimes fail to produce syntactically correct code. More recent models are sidestepping this issue by using the target language’s grammar to generate abstract syntax trees (ASTs) (Maddison & Tarlow, 2014; Bielik et al., 2016; Parisotto et al., 2017; Yin & Neubig, 2017; Rabinovich et al., 2017), which are syntactically correct by construction.
|
| 31 |
+
|
| 32 |
+
In this work, we follow the AST generation approach. The key idea is to construct the AST $a$ sequentially, by expanding one node at a time using production rules from the underlying programming language grammar. This simplifies the code generation task to a sequence of classification problems, in which an appropriate production rule has to be chosen based on the context information and the partial AST generated so far. In this work, we simplify the problem further — similar to Maddison & Tarlow (2014); Bielik et al. (2016) — by fixing the order of the sequence to always expand the left-most, bottom-most nonterminal node. Alg. 1 illustrates the common structure of AST-generating models. Then, the probability of generating a given AST $a$ given some context $c$ is
|
| 33 |
+
|
| 34 |
+
$$
|
| 35 |
+
p ( a \mid c ) = \prod _ { t } p ( a _ { t } \mid c , a _ { < t } ) ,
|
| 36 |
+
$$
|
| 37 |
+
|
| 38 |
+
where $a _ { t }$ is the production choice at step $t$ and $a _ { < t }$ the partial syntax tree generated before step $t$ .
|
| 39 |
+
|
| 40 |
+
Code Generation as Hole Completion We introduce the ExprGen task of filling in code within a hole of an otherwise existing program. This is similar, but not identical to the auto-completion function in a code editor, as we assume information about the following code as well and aim to generate whole expressions rather than single tokens. The ExprGen task also resembles program sketching (Solar-Lezama, 2008) but we give no other (formal) specification other than the surrounding code. Concretely, we restrict ourselves to expressions that have Boolean, arithmetic or string type, or arrays of such types, excluding expressions of other types or expressions that use project-specific APIs. An example is shown in Fig. 1. We picked this subset because it already has rich semantics that can require reasoning about the interplay of different variables, while it still only relies on few operators and does not require to solve the problem of open vocabularies of full programs, where an unbounded number of methods would need to be considered.
|
| 41 |
+
|
| 42 |
+
In our setting, the context $c$ is the pre-existing code around a hole for which we want to generate an expression. This also includes the set of variables $v _ { 1 } , \ldots , v _ { \ell }$ that are in scope at this point, which can be used to guide the decoding procedure (Maddison & Tarlow, 2014). Note, however, that our method is not restricted to code generation and can be easily extended to all other tasks and domains that can be captured by variations of Alg. 1 (e.g. in NLP).
|
| 43 |
+
|
| 44 |
+
# 3 GRAPH DECODING FOR SOURCE CODE
|
| 45 |
+
|
| 46 |
+
To tackle the code generation task presented in the previous section, we have to make two design choices: (a) we need to find a way to encode the code context $c , v _ { 1 } , \ldots , v _ { \ell }$ and (b) we need to construct a model that can learn $p ( \dot { a } _ { t } \mid c , a _ { < t } )$ well. We do not investigate the question of encoding the context in this paper, and use two existing methods in our experiments in Sect. 5. Both these encoders yield a distributed vector representation for the overall context, representations $h _ { t _ { 1 } } , \ldots , h _ { t _ { T } }$ for all tokens in the context, and separate representations for each of the in-scope variables $v _ { 1 } , \ldots , v _ { \ell }$ summarizing how each variable is used in the context. This information can then be used in the generation process, which is the main contribution of our work and is described in this section.
|
| 47 |
+
|
| 48 |
+
Overview Our decoder model follows the grammar-driven AST generation strategy of prior work as shown in Alg. 1. The core difference is in how we compute the representation of the node to expand. Maddison & Tarlow (2014) construct it entirely from the representation of its parent in the AST using a log-bilinear model. Rabinovich et al. (2017) construct the representation of a node using the parents of the AST node but also found it helpful to take the relationship to the parent node (e.g. “condition of a while”) into account. Yin & Neubig (2017) on the other hand propose to take the last expansion step into account, which may have finished a subtree “to the left”. In practice, these additional relationships are usually encoded by using gated recurrent units with varying input sizes.
|
| 49 |
+
|
| 50 |
+
We propose to generalize and unify these ideas using a graph to structure the flow of information in the model. Concretely, we use a variation of attribute grammars (Knuth, 1967) from compiler theory to derive the structure of this graph. We associate each node in the AST with two fresh nodes representing inherited resp. synthesized information (or attributes). Inherited information is derived from the context and parts of the AST that are already generated, whereas synthesized information can be viewed as a “summary” of a subtree. In classical compiler theory, inherited attributes usually contain information such as declared variables and their types (to allow the compiler to check that only declared variables are used), whereas synthesized attributes carry information about a subtree “to the right” (e.g., which variables have been declared). Traditionally, to implement this, the language grammar has to be extended with explicit rules for deriving and synthesizing attributes.
|
| 51 |
+
|
| 52 |
+
To transfer this idea to the deep learning domain, we represent attributes by distributed vector representations and train neural networks to learn how to compute attributes. Our method for getRepresentation from Alg. 1 thus factors into two parts: a deterministic procedure that turns a partial AST $a _ { < t }$ into a graph by adding additional edges that encode attribute relationships, and a graph neural network that learns from this graph.
|
| 53 |
+
|
| 54 |
+
Notation Formally, we represent programs as graphs where nodes $u , v , \ldots$ are either the AST nodes or their associated attribute nodes, and typed directed edges $\langle u , \tau , v \rangle \in \mathcal { E }$ connect the nodes according to the flow of information in the model. The edge types $\tau$ represent different syntactic or semantic relations in the information flow, discussed in detail below. We write $\mathcal { E } _ { v }$ for the set of incoming edges into $v$ . We also use functions like parent $( a , v )$ and lastSibling $( a , v )$ that look up and return nodes from the AST $a$ (e.g. resp. the parent node of $v$ or the preceding AST sibling of $v$ ).
|
| 55 |
+
|
| 56 |
+
Example Consider the AST of the expression $\mathrm { ~ ~ { ~ i ~ } ~ } - \mathrm { ~ ~ { ~ j ~ } ~ }$ shown in Fig. 2 (annotated with attribute relationships) constructed step by step by our model. The AST derivation using the programming language grammar is indicated by shaded backgrounds, nonterminal nodes are shown as rounded rectangles, and terminal nodes are shown as rectangles. We additionally show the variables given within the context as dashed rectangles at the bottom. First, the root node, Expr, was expanded using the production rule $( 1 ) : \mathtt { E x p r } \Longrightarrow \mathtt { E x p r } \ - \ \mathtt { E x p r }$ . Then, its two nonterminal children were in turn expanded to the set of known variables using the produc
|
| 57 |
+
|
| 58 |
+
# Algorithm 2 Pseudocode for ComputeEdge
|
| 59 |
+
|
| 60 |
+
Input: Partial AST $a$ , node $v$
|
| 61 |
+
1: Edge set $\mathcal { E } \emptyset$
|
| 62 |
+
2: if $v$ is inherited then
|
| 63 |
+
3: $\mathcal { E } \mathcal { E } \cup \{ \langle \mathsf { p a r e n t } ( a , v ) , C h i l d , v \rangle \}$
|
| 64 |
+
4: if $v$ is terminal node then
|
| 65 |
+
5: $\mathcal { E } \mathcal { E } \cup \{ \langle | \mathsf { a s t T o k e n } ( a , v ) , N e x t T o k e n , v \rangle \}$
|
| 66 |
+
6: if $v$ is variable then
|
| 67 |
+
7: $\mathcal { E } \mathcal { E } \cup \{ \langle | { \mathsf { a s t U s e } } ( a , v ) , N e x t U s e , v \rangle \}$
|
| 68 |
+
8: if $v$ is not first child then
|
| 69 |
+
9: $\mathcal { E } \gets \mathcal { E } \cup \{ \langle | { \mathsf { a s t } } \mathsf { S i b } | { \mathsf { i n g } } ( a , v ) , N e x t S i b , v \rangle \}$
|
| 70 |
+
10: else
|
| 71 |
+
11: $\mathcal { E } \mathcal { E } \cup \{ \langle u , P a r e n t , v \rangle \mid u \in \mathsf { c h i l d r e n } ( a , v ) \}$
|
| 72 |
+
12: E ← E ∪ {hinheritedAttr(v), InhToSyn, vi}
|
| 73 |
+
13: return $\varepsilon$
|
| 74 |
+
|
| 75 |
+

|
| 76 |
+
Figure 2: Example AST with attribute dependencies, shown constructed step by step in the order of generation. Each AST node (labeled by a terminal or non-terminal) has either one or two associated attribute nodes, shown as its left/right parts. The node IDs are highlighted at the corresponding generation step. Edge color and label indicate edge type. Edges are computed using Alg. 2, but are only depicted after use in message passing. Best viewed in color.
|
| 77 |
+
|
| 78 |
+
tion rule $( 2 ) : \mathtt { E x p r } \Longrightarrow \nu$ , choosing i for the first variable and $\dot { ] }$ for the second variable (cf. below for details on picking variables).
|
| 79 |
+
|
| 80 |
+
Attribute nodes are shown overlaying their corresponding AST nodes. For example, the root node is associated with its inherited attributes node 0 and with node 10 for its synthesized attributes. For simplicity, we use the same representation for inherited and synthesized attributes of terminal nodes.
|
| 81 |
+
|
| 82 |
+
Edges in $\mathbf { \delta } \mathbf { \delta } \mathbf { a } _ { < t }$ We discuss the edges used in our neural attribute grammars $( { \mathcal { N A } } { \mathcal { G } } )$ on our example below, and show them in Fig. 2 using different edge drawing styles for different edge types. Once a node is generated, the edges connecting this node can be deterministically added to $a _ { < t }$ (precisely defined in Alg. 2). The list of different edge types used in our model is as follows:
|
| 83 |
+
|
| 84 |
+
Child (red) edges connect an inherited attribute node to the inherited attributes nodes of its children, as seen in the edges from node 0. These are the connections in standard syntaxdriven decoders (Maddison & Tarlow, 2014; Parisotto et al., 2017; Yin & Neubig, 2017; Rabinovich et al., 2017). • Parent (green) edges connect a synthesized attribute node to the synthesized attribute node of its AST parent, as seen in the edges leading to node 10. These are the additional connections used by the R3NN decoder introduced by Parisotto et al. (2017). • NextSib (black) edges connect the synthesized attribute node to the inherited attribute node of its next sibling (e.g. from node 5 to node 6). These allow information about the synthesized attribute nodes from a fully generated subtree to flow to the next subtree. NextUse (orange) edges connect the attribute nodes of a variable (since variables are always terminal nodes, we do not distinguish inherited from synthesized attributes) to their next use. Unlike Allamanis et al. (2018b), we do not perform a dataflow analysis, but instead just follow the lexical order. This can create edges from nodes of variables in the context $c$ (for example, from node 1 to 4 in Fig. 2), or can connect AST leaf nodes that represent multiple uses of the same variable within the generated expressions.
|
| 85 |
+
|
| 86 |
+
• NextToken (blue) edges connect a terminal node (a token) to the next token in the program text, for example between nodes 4 and 6.
|
| 87 |
+
|
| 88 |
+
• InhToSyn edges (not shown in Fig. 2) connect the inherited attributes nodes to its synthesized attribute nodes. This is not strictly adding any information, but we found it to help with training.
|
| 89 |
+
|
| 90 |
+
The panels of Fig. 2 show the timesteps at which the representations of particular attribute nodes are computed and added to the graph. For example, in the second step, the attributes for the terminal token i (node 4) in Fig. 2 are computed from the inherited attributes of its AST parent Expr (node 3), the attributes of the last use of the variable i (node 1), and the node label i. In the third step, this computed attribute is used to compute the synthesized attributes of its AST parent Expr (node 5).
|
| 91 |
+
|
| 92 |
+
Attribute Node Representations To compute the neural attribute representation $\mathbf { h } _ { v }$ of an attribute node $v$ whose corresponding AST node is labeled with $\ell _ { v }$ , we first obtain its incoming edges using Alg. 2 and then use the state update function from Gated Graph Neural Networks (GGNN) (Li et al., 2016). Thus, we take the attribute representations $\mathbf { h } _ { u _ { i } }$ at edge sources $u _ { i }$ , transform them according to the corresponding edge type $t _ { i }$ using a learned function $f _ { t _ { i } }$ , aggregate them (by elementwise summation) and combine them with the learned embedding $\mathsf { e m b } ( \ell _ { v } )$ of the node label $\ell _ { v }$ using a function $g$ :
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
\mathbf { h } _ { v } = g ( \mathsf { e m b } ( \ell _ { v } ) , \sum _ { \langle u _ { i } , t _ { i } , v \rangle \in \mathcal { E } _ { v } } f _ { t _ { i } } ( \mathbf { h } _ { u _ { i } } ) )
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
In practice, we use a single linear layer for $f _ { t _ { i } }$ and implement $g$ as a gated recurrent unit (Cho et al., 2014). We compute node representations in such an order that all $\mathbf { h } _ { u _ { i } }$ appearing on the right of (2) are already computed. This is possible as the graphs obtained by repeated application of Alg. 2 are directed acyclic graphs rooted in the inherited attribute node of the root node of the AST. We initialize the representation of the root inherited attribute to the representation returned by the encoder for the context information.
|
| 99 |
+
|
| 100 |
+
Choosing Productions, Variables & Literals We can treat picking production rules as a simple classification problem over all valid production rules, masking out those choices that do not correspond to the currently considered nonterminal. For a nonterminal node $v$ with label $\ell _ { v }$ and inherited attributes $\mathbf { h } _ { v }$ , we thus define
|
| 101 |
+
|
| 102 |
+
Here, $m \ell _ { v }$ is a mask vector whose value is 0 for valid productions $\ell _ { v } \Rightarrow . . .$ and $- \infty$ for all other productions. In practice, we implement $e$ using a linear layer.
|
| 103 |
+
|
| 104 |
+
Similarly, we pick variables from the set of variables V in scope using their representations hvvar (initially the representation obtained from the context, and later the attribute representation of the last node in the graph in which they have been used) by using a pointer network (Vinyals et al., 2015). Concretely, to pick a variable at node $v$ , we use learnable linear function $k$ and define
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
{ \mathsf { a } } ( { \mathcal { V } } , \mathbf { h } _ { v } ) = \underset { v a r \in \mathcal { V } } { \arg \operatorname* { m a x } } P ( v a r \mid \mathbf { h } _ { v } ) = \underset { v a r \in \mathcal { V } } { \arg \operatorname* { m a x } } k ( \mathbf { h } _ { v } , \mathbf { h } _ { v _ { v a r } } ) .
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
Note that since the model always picks a variable from the set of in-scope variables $\nu$ , this generation model can never predict an unknown or out-of-scope variable.
|
| 111 |
+
|
| 112 |
+
Finally, to generate literals, we combine a small vocabulary $\mathcal { L }$ of common literals observed in the training data and special UNK tokens for each type of literal with another pointer network that can copy one of the tokens $t _ { 1 } \ldots t _ { T }$ from the context. Thus, to pick a literal at node $v$ , we define
|
| 113 |
+
|
| 114 |
+
$$
|
| 115 |
+
\mathsf { t e r a l } ( \mathcal { V } , \mathbf { h } _ { v } ) = \operatorname * { a r g m a x } _ { l i t \in \mathcal { L } \cup \{ t _ { 1 } \ldots t _ { T } \} } P ( l i t \mid \mathbf { h } _ { v } ) .
|
| 116 |
+
$$
|
| 117 |
+
|
| 118 |
+
Note that this is the only operation that may produce an unknown token (i.e. an UNK literal). In practice, we implement this by learning two functions $s _ { \mathcal { L } }$ and $s _ { c }$ , such that $s _ { \mathcal { L } } ( \mathbf { h } _ { v } )$ produces a score for each token from the vocabulary and $s _ { c } ( \mathbf { h } _ { v } , h _ { t _ { i } } )$ computes a score for copying token $t _ { i }$ from the context. By computing a softmax over all resulting values and normalizing it by summing up entries corresponding to the same constant, we can learn to approximate the desired $\dot { P } ( l i t \mid \mathbf { h } _ { v } )$ .
|
| 119 |
+
|
| 120 |
+
Training & Training Objective The different shapes and sizes of generated expressions complicate an efficient training regime. However, note that given a ground truth target tree, we can easily augment it with all additional edges according to Alg. 2. Given that full graph, we can compute a propagation schedule (intuitively, a topological ordering of the nodes in the graph, starting in the root node) that allows to repeatedly apply (2) to obtain representations for all nodes in the graph. By representing a batch of graphs as one large (sparse) graph with many disconnected components, similar to Allamanis et al. (2018b), we can train our graph neural network efficiently. We have released the code for this on https://github.com/Microsoft/graph-based-code-modelling.
|
| 121 |
+
|
| 122 |
+
Our training procedure thus combines an encoder (cf. Sect. 5), whose output is used to initialize the representation of the root and context variable nodes in our augmented syntax graph, the sequential graph propagation procedure described above, and the decoder choice functions (3) and (4). We train the system end-to-end using a maximum likelihood objective without pre-trained components.
|
| 123 |
+
|
| 124 |
+
Additional Improvements We extend (3) with an attention mechanism (Bahdanau et al., 2014; Luong et al., 2015) that uses the state $\mathbf { h } _ { v }$ of the currently expanded node $v$ as a key and the context token representations $h _ { t _ { 1 } } , \ldots , h _ { t _ { T } }$ as memories. Experimentally, we found that extending Eqs. 4, 5 similarly did not improve results, probably due to the fact that they already are highly dependent on the context information.
|
| 125 |
+
|
| 126 |
+
Following Rabinovich et al. (2017), we provide additional information for Child edges. To allow this, we change our setup so that some edge types also require an additional label, which is used when computing the messages sent between different nodes in the graph. Concretely, we extend (2) by considering sets of unlabeled edges ${ \mathcal { E } } _ { v }$ and labeled edges $\mathcal { E } _ { v } ^ { \ell }$ :
|
| 127 |
+
|
| 128 |
+
$$
|
| 129 |
+
\mathbf { h } _ { v } = g ( \mathsf { e m b } ( \ell _ { v } ) , \sum _ { \substack { ( u _ { i } , t _ { i } , v ) \in \mathcal { E } _ { v } } } f _ { t _ { i } } ( \mathbf { h } _ { u _ { i } } ) + \sum _ { \substack { ( u _ { i } , t _ { i } , \ell _ { i } , v ) \in \mathcal { E } _ { v } ^ { \ell } } } f _ { t _ { i } } ( \mathbf { h } _ { u _ { i } } , \mathsf { e m b } _ { e } ( \ell _ { i } ) ) )
|
| 130 |
+
$$
|
| 131 |
+
|
| 132 |
+
Thus for labeled edge types, $f _ { t _ { i } }$ takes two inputs and we additionally introduce a learnable embedding for the edge labels. In our experiments, we found it useful to label Child with tuples consisting of the chosen production and the index of the child, i.e., in Fig. 2, we would label the edge from 0 to 3 with $( 2 , 0 )$ , the edge from 0 to 6 with $( 2 , 1 )$ , etc.
|
| 133 |
+
|
| 134 |
+
Furthermore, we have extended pickProduction to also take the information about available variables into account. Intuitively, this is useful in cases of productions such as $\mathtt { E x p r } \Longrightarrow \mathtt { E x p r . L e n g t h } _ { \mathtt { i n d e m } }$ , which can only be used in a well-typed derivation if an array-typed variable is available. Thus, we extend $e ( \mathbf { h } _ { v } )$ from (3) to additionally take the representation of all variables in scope into account, i.e., $e ( \mathbf { h } _ { v } , r ( \{ \mathbf { h } _ { v _ { v a r } } \mid v a r \in \mathcal { V } \} )$ ), where we have implemented $r$ as a max pooling operation.
|
| 135 |
+
|
| 136 |
+
# 4 RELATED WORK
|
| 137 |
+
|
| 138 |
+
Source code generation has been studied in a wide range of different settings (Allamanis et al., 2018a). We focus on the most closely related works in language modeling here. Early works approach the task by generating code as sequences of tokens (Hindle et al., 2012; Hellendoorn & Devanbu, 2017), whereas newer methods have focused on leveraging the known target grammar and generate code as trees (Maddison & Tarlow, 2014; Bielik et al., 2016; Parisotto et al., 2017; Yin & Neubig, 2017; Rabinovich et al., 2017) (cf. Sect. 2 for an overview). While modern models succeed at generating “natural-looking” programs, they often fail to respect simple semantic rules. For example, variables are often used without initialization or written several times without being read inbetween.
|
| 139 |
+
|
| 140 |
+
Existing tree-based generative models primarily differ in what information they use to decide which expansion rule to use next. Maddison & Tarlow (2014) consider the representation of the immediate parent node, and suggest to consider more information (e.g., nearby tokens). Parisotto et al. (2017) compute a fresh representation of the partial tree at each expansion step using R3NNs (which intuitively perform a leaf-to-root traversal followed by root-to-leaf traversal of the AST). The PHOG model (Bielik et al., 2016) conditions generation steps on the result of learned (decision tree-style) programs, which can do bounded AST traversals to consider nearby tokens and non-terminal nodes. The language also supports a jump to the last node with the same identifier, which can serve as syntactic approximation of data-flow analysis. Rabinovich et al. (2017) only use information about the parent node, but use neural networks specialized to different non-terminals to gain more fine-grained control about the flow of information to different successor nodes. Finally, Amodio et al. (2017) and Yin & Neubig (2017) follow a left-to-right, depth-first expansion strategy, but thread updates to single state (via a gated recurrent unit) through the overall generation procedure, thus giving the pickProduction procedure access to the full generation history as well as the representation of the parent node. Amodio et al. (2017) also suggest the use of attribute grammars, but use them to define a deterministic procedure that collects information throughout the generation process, which is provided as additional feature.
|
| 141 |
+
|
| 142 |
+
As far as we are aware, previous work has not considered a task in which a generative model fills a hole in a program with an expression. Lanuage model-like methods take into account only the lexicographically previous context of code. The task of Raychev et al. (2014) is near to our ExprGen, but instead focuses on filling holes in sequences of API calls. There, the core problem is identifying the correct function to call from a potentially large set of functions, given a sequence context. In contrast, ExprGen requires to handle arbitrary code in the context, and then to build possibly complex expressions from a small set of operators. Allamanis et al. (2018b) consider similar context, but are only picking a single variable from a set of candidates, and thus require no generative modeling.
|
| 143 |
+
|
| 144 |
+
# 5 EVALUATION
|
| 145 |
+
|
| 146 |
+
Dataset We have collected a dataset for our ExprGen task from 593 highly-starred open-source C# projects on GitHub, removing any near-duplicate files, following the work of Lopes et al. (2017). We parsed all $C ^ { \# }$ files and identified all expressions of the fragment that we are considering (i.e., restricted to numeric, Boolean and string types, or arrays of such values; and not using any user-defined functions). We then remove the expression, perform a static analysis to determine the necessary context information and extract a sample. For each sample, we create an abstract syntax tree by coarsening the syntax tree generated by the $C ^ { \# }$ compiler Roslyn. This resulted in 343 974 samples overall with 4.3 $( \pm 3 . 8 ) $ tokens per expression to generate, or alternatively 3.7 $( \pm 3 . 1 )$ production steps. We split the data into four separate sets. A “test-only” dataset is made up from $\mathord { \sim } 1 0 0 \mathrm { k }$ samples generated from 114 projects. The remaining data we split into training-validation-test sets $( 3 : 1 : 1 )$ ), keeping all expressions collected from a single source file within a single fold. Samples from our dataset can be found in the supplementary material. Our decoder uses the grammar made up by 222 production rules observed in the ASTs of the training set, which includes rules such as $\mathtt { E x p r } \Longrightarrow \mathtt { E x p r } + \mathtt { E x p r }$ for binary operations, $\operatorname { E x p r } \Longrightarrow$ Expr.Equals(Expr) for built-in methods, etc.
|
| 147 |
+
|
| 148 |
+
Encoders We consider two models to encode context information. Seq is a two-layer bi-directional recurrent neural network (using a GRU (Cho et al., 2014)) to encode the tokens before and after the “hole” in which we want to generate an expression. Additionally, it computes a representation for each variable var in scope in the context in a similar manner: For each variable var it identifies usages before/after the hole and encodes each of them independently using a second bi-directional two-layer GRU, which processes a window of tokens around each variable usage. It then computes a representation for var by average pooling of the final states of these GRU runs.
|
| 149 |
+
|
| 150 |
+
The second encoder $\mathcal { G }$ is an implementation of the program graph approach introduced by Allamanis et al. (2018b). We follow the transformation used for the Varmisuse task presented in that paper, i.e., the program is transformed into a graph, and the target expression is replaced by a fresh dummy node. We then run a graph neural network for 8 steps to obtain representations for all nodes in the graph, allowing us to read out a representation for the “hole” (from the introduced dummy node) and for all variables in context. The used context information captured by the GNN is a superset of what existing methods (e.g. language models) consider.
|
| 151 |
+
|
| 152 |
+
Baseline Decoders We compare our model to re-implementations of baselines from the literature. As our ExprGen task is new, re-using existing implementations is hard and problematic in comparison. Most recent baseline methods can be approximated by ablations of our model. We experimented with a simple sequence decoder with attention and copying over the input, but found it to be substantially weaker than other models in all regards. Next, we consider T ree, our model restricted to using only Child edges without edge labels. This can be viewed as an evolution of Maddison & Tarlow (2014), with the difference that instead of a log-bilinear network that does not maintain state during the generation, we use a GRU. $\mathcal { A } \mathcal { S } \mathcal { N }$ is similar to abstract syntax networks (Rabinovich et al., 2017) and arises as an extension of the T ree model by adding edge labels on Child that encode the chosen production and the index of the child (corresponding to the “field name” Rabinovich et al. (2017)). Finally, Syn follows the work of Yin & Neubig (2017), but uses a GRU instead of an LSTM. For this, we extend T ree by a new NextExp edge that connects nodes to each other in the expansion sequence of the tree, thus corresponding to the action flow (Yin & Neubig, 2017).
|
| 153 |
+
|
| 154 |
+
Table 1: Evaluation of encoder and decoder combinations on predicting an expression from code context. $\dagger$ : PHOG (Bielik et al., 2016) is only conditioned on the tokens on the left of the expression.
|
| 155 |
+
|
| 156 |
+
<table><tr><td rowspan="2">Model</td><td colspan="4">Test (from seen projects)</td><td colspan="4">Test-only (from unseen projects)</td></tr><tr><td>Perplexity</td><td>Well-Typed</td><td>Acc@1</td><td>Acc@5</td><td>Perplexity</td><td>Well-Typed</td><td>Acc@1</td><td>Acc@5</td></tr><tr><td>PHOGt</td><td>1</td><td>1</td><td>34.8%</td><td>42.9%</td><td>1</td><td>1</td><td>28.0%</td><td>37.3%</td></tr><tr><td>Seq→Seq</td><td>87.48</td><td>32.4%</td><td>21.8%</td><td>28.1%</td><td>130.46</td><td>23.4%</td><td>10.8%</td><td>16.8%</td></tr><tr><td>Seq→NAg</td><td>6.81</td><td>53.2%</td><td>17.7%</td><td>33.7%</td><td>8.38</td><td>40.4%</td><td>8.4%</td><td>15.8%</td></tr><tr><td>g→Seq</td><td>93.31</td><td>40.9%</td><td>27.1%</td><td>34.8%</td><td>28.48</td><td>36.3%</td><td>17.2%</td><td>25.6%</td></tr><tr><td>g→Tree</td><td>4.37</td><td>49.3%</td><td>26.8%</td><td>48.9%</td><td>5.37</td><td>41.2%</td><td>19.9%</td><td>36.8%</td></tr><tr><td>g→ASN</td><td>2.62</td><td>78.7%</td><td>45.7%</td><td>62.0%</td><td>3.03</td><td>74.7%</td><td>32.4%</td><td>48.1%</td></tr><tr><td>g →Syn</td><td>2.71</td><td>84.9%</td><td>50.5%</td><td>66.8%</td><td>3.48</td><td>84.5%</td><td>36.0%</td><td>52.7%</td></tr><tr><td>9 →NAg</td><td>2.56</td><td>86.4%</td><td>52.3%</td><td>69.2%</td><td>3.07</td><td>84.5%</td><td>38.8%</td><td>57.0%</td></tr></table>
|
| 157 |
+
|
| 158 |
+
In all cases, our re-implementations improve on prior work in our variable selection mechanism, which ensures that generated programs only use variables that are defined and in scope. Both Rabinovich et al. (2017) and Yin & Neubig (2017) instead use a copying mechanism from the context. On the other hand, they use RNN modules to generate function names and choose arguments from the context (Yin & Neubig, 2017) and to generate string literals (Rabinovich et al., 2017). Our ExprGen task limits the set of allowed functions and string literals substantially and thus no RNN decoder generating such things is required in our experiments.
|
| 159 |
+
|
| 160 |
+
The authors of the PHOG (Bielik et al., 2016) language model kindly ran experiments on our data for the ExprGen task, to provide baseline results of a non-neural language model. Note, however, that PHOG does not consider the code context to the right of the expression to generate, and does no additional analyses to determine which variable choices are valid. Extending the model to take more context into account and do some analyses to restrict choices would certainly improve its results.
|
| 161 |
+
|
| 162 |
+
# 5.1 QUANTITATIVE EVALUATION
|
| 163 |
+
|
| 164 |
+
Metrics We are interested in the ability of a model to generate valid expressions based on the current code context. To evaluate this, we consider four metrics. As our ExprGen task requires a conditional language model of code, we first consider the per-token perplexity of the model; the lower the perplexity, the better the model fits the real data distribution. We then evaluate how often the generated expression is well-typed (i.e., can be typed in the original code context). We report these metrics for the most likely expression returned by beam search decoding with beam width 5. Finally, we compute how often the ground truth expression was generated (reported for the most likely expression, as well as for the top five expressions). This measure is stricter than semantic equivalence, as an expression $\mathrm { ~ \ j ~ } > \mathrm { ~ \ i ~ }$ will not match the equivalent $\dot { \mathrm { ~ \scriptsize ~ \perp ~ } } < \dot { \mathrm { ~ \scriptsize ~ \jmath ~ } }$ .
|
| 165 |
+
|
| 166 |
+
Results We show the results of our evaluation in Tab. 1. Overall, the graph encoder architecture seems to be best-suited for this task. All models learn to generate syntactically valid code (which is relatively simple in our domain). However, the different encoder models perform very differently on semantic measures such as well-typedness and the retrieval of the ground truth expression. Most of the type errors are due to usage of an “UNK” literal (for example, the $\mathcal { G } \mathcal { N A G }$ model only has $4 \%$ type error when filtering out such unknown literals). The results show a clear trend that correlates better semantic results with the amount of information about the partially generated programs employed by the generative models. Transferring a trained model to unseen projects with a new project-specific vocabulary substantially worsens results, as expected. Overall, our $\mathcal { N A G }$ model, combining and adding additional signal sources, seems to perform best on most measures, and seems to be leastimpacted by the transfer.
|
| 167 |
+
|
| 168 |
+

|
| 169 |
+
|
| 170 |
+
Figure 3: Two lightly edited examples from our test set and expressions predicted by different models.
|
| 171 |
+
More examples can be found in the supplementary material.
|
| 172 |
+
|
| 173 |
+
# 5.2 QUALITATIVE EVALUATION
|
| 174 |
+
|
| 175 |
+
As the results in the previous section suggest, the proposed ExprGen task is hard even for the strongest models we evaluated, achieving no more than $50 \%$ accuracy on the top prediction. It is also unsolvable for classical logico-deductive program synthesis systems, as the provided code context does not form a precise specification. However, we do know that most instances of the task are (easily) solvable for professional software developers, and thus believe that machine learning systems can have considerable success on the task.
|
| 176 |
+
|
| 177 |
+
Fig. 3 shows two (abbreviated) samples from our test set, together with the predictions made by the two strongest models we evaluated. In the first example, we can see that the $\mathcal { G } \mathcal { N A G }$ model correctly identifies that the relationship between paramCount and methParamCount is important (as they appear together in the blocked guarded by the expression to generate), and thus generates comparison expressions between the two variables. The $\bar { \mathcal { G } } \mathcal { A } \mathcal { S } \mathcal { N }$ model lacks the ability to recognize that paramCount (or any variable) was already used and thus fails to insert both relevant variables. We found this to be a common failure, often leading to suggestions using only one variable (possibly repeatedly). In the second example, both $\mathcal { G } \mathcal { N A G }$ and $\mathcal { G } S y n$ have learned the common if (var.StartsWith(...)) { var.Substring(num) ... } pattern, but of course fail to produce the correct string literal in the condition. We show results for all of our models for these examples, as well as for as additional examples, in the supplementary material B.
|
| 178 |
+
|
| 179 |
+
# 6 DISCUSSION & CONCLUSIONS
|
| 180 |
+
|
| 181 |
+
We presented a generative code model that leverages known semantics of partially generated programs to direct the generative procedure. The key idea is to augment partial programs to obtain a graph, and then use graph neural networks to compute a precise representation for the partial program. This representation then helps to better guide the remainder of the generative procedure. We have shown that this approach can be used to generate small but semantically interesting expressions from very imprecise context information. The presented model could be useful in program repair scenarios (where repair proposals need to be scored, based on their context) or in the code review setting (where it could highlight very unlikely expressions). We also believe that similar models could have applications in related domains, such as semantic parsing, neural program synthesis and text generation.
|
| 182 |
+
|
| 183 |
+
REFERENCES
|
| 184 |
+
Miltiadis Allamanis, Earl T Barr, Premkumar Devanbu, and Charles Sutton. A survey of machine learning for big code and naturalness. ACM Computing Surveys, 2018a.
|
| 185 |
+
Miltiadis Allamanis, Marc Brockschmidt, and Mahmoud Khademi. Learning to represent programs with graphs. In International Conference on Learning Representations (ICLR), 2018b.
|
| 186 |
+
Matthew Amodio, Swarat Chaudhuri, and Thomas W. Reps. Neural attribute machines for program generation. arXiv preprint arXiv:1705.09231, 2017.
|
| 187 |
+
Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In International Conference on Learning Representations (ICLR), 2014.
|
| 188 |
+
Benjamin Bichsel, Veselin Raychev, Petar Tsankov, and Martin Vechev. Statistical deobfuscation of android applications. In Conference on Computer and Communications Security (CCS), 2016.
|
| 189 |
+
Pavol Bielik, Veselin Raychev, and Martin Vechev. PHOG: probabilistic model for code. In International Conference on Machine Learning (ICML), 2016.
|
| 190 |
+
Kyunghyun Cho, Bart van Merriënboer, Dzmitry Bahdanau, and Yoshua Bengio. On the properties of neural machine translation: Encoder–decoder approaches. Syntax, Semantics and Structure in Statistical Translation, 2014.
|
| 191 |
+
Yu Feng, Ruben Martins, Osbert Bastani, and Isil Dillig. Program synthesis using conflict-driven learning. In Programming Languages Design and Implementation (PLDI), 2018.
|
| 192 |
+
John K. Feser, Swarat Chaudhuri, and Isil Dillig. Synthesizing data structure transformations from input-output examples. In Programming Languages Design and Implementation (PLDI), 2015.
|
| 193 |
+
Justin Gilmer, Samuel S. Schoenholz, Patrick F. Riley, Oriol Vinyals, and George E. Dahl. Neural message passing for quantum chemistry. In International Conference on Machine Learning (ICML), 2017.
|
| 194 |
+
Vincent J. Hellendoorn and Premkumar Devanbu. Are deep neural networks the best choice for modeling source code? In Foundations of Software Engineering (FSE), 2017.
|
| 195 |
+
Abram Hindle, Earl T Barr, Zhendong Su, Mark Gabel, and Premkumar Devanbu. On the naturalness of software. In International Conference on Software Engineering (ICSE), 2012.
|
| 196 |
+
Donald E. Knuth. Semantics of context-free languages. Mathemtical Systems Theory, 2(2):127–145, 1967.
|
| 197 |
+
Yujia Li, Daniel Tarlow, Marc Brockschmidt, and Richard Zemel. Gated graph sequence neural networks. In International Conference on Learning Representations (ICLR), 2016.
|
| 198 |
+
Yujia Li, Oriol Vinyals, Chris Dyer, Razvan Pascanu, and Peter Battaglia. Learning deep generative models of graphs. CoRR, abs/1803.03324, 2018.
|
| 199 |
+
Cristina V Lopes, Petr Maj, Pedro Martins, Vaibhav Saini, Di Yang, Jakub Zitny, Hitesh Sajnani, and Jan Vitek. DéjàVu: a map of code duplicates on GitHub. In Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA), 2017.
|
| 200 |
+
Minh-Thang Luong, Hieu Pham, and Christopher D Manning. Effective approaches to attention-based neural machine translation. In Conference on Empirical Methods in Natural Language Processing (EMNLP), 2015.
|
| 201 |
+
Chris J Maddison and Daniel Tarlow. Structured generative models of natural source code. In International Conference on Machine Learning (ICML), 2014.
|
| 202 |
+
Emilio Parisotto, Abdel-rahman Mohamed, Rishabh Singh, Lihong Li, Dengyong Zhou, and Pushmeet Kohli. Neuro-symbolic program synthesis. In International Conference on Learning Representations (ICLR), 2017.
|
| 203 |
+
Oleksandr Polozov and Sumit Gulwani. FlashMeta: a framework for inductive program synthesis. In ObjectOriented Programming, Systems, Languages, and Applications (OOPSLA), 2015.
|
| 204 |
+
Maxim Rabinovich, Mitchell Stern, and Dan Klein. Abstract syntax networks for code generation and semantic parsing. In Annual Meeting of the Association for Computational Linguistics (ACL), 2017.
|
| 205 |
+
Veselin Raychev, Martin Vechev, and Eran Yahav. Code completion with statistical language models. In Programming Languages Design and Implementation (PLDI), 2014.
|
| 206 |
+
|
| 207 |
+
Veselin Raychev, Martin Vechev, and Andreas Krause. Predicting program properties from Big Code. In Principles of Programming Languages (POPL), 2015.
|
| 208 |
+
|
| 209 |
+
Bidisha Samanta, Abir De, Niloy Ganguly, and Manuel Gomez-Rodriguez. Designing random graph models using variational autoencoders with applications to chemical design. CoRR, abs/1802.05283, 2018.
|
| 210 |
+
|
| 211 |
+
Armando Solar-Lezama. Program synthesis by sketching. University of California, Berkeley, 2008.
|
| 212 |
+
|
| 213 |
+
Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In Advances in Neural Information Processing Systems, 2015.
|
| 214 |
+
|
| 215 |
+
Pengcheng Yin and Graham Neubig. A syntactic neural model for general-purpose code generation. In Annual Meeting of the Association for Computational Linguistics (ACL), 2017.
|
| 216 |
+
|
| 217 |
+
# A DATASET SAMPLES
|
| 218 |
+
|
| 219 |
+
Below we list some sample snippets from the training set for our ExprGen task. The highlighted expressions are to be generated.
|
| 220 |
+
|
| 221 |
+

|
| 222 |
+
Figure 4: Sample snippet from the Lean project. Formatting has been modified.
|
| 223 |
+
|
| 224 |
+

|
| 225 |
+
Figure 5: Sample snippet from the BotBuilder project. Formatting has been modified.
|
| 226 |
+
|
| 227 |
+

|
| 228 |
+
Figure 6: Sample snippet from the Chocolatey project. Formatting has been modified.
|
| 229 |
+
|
| 230 |
+

|
| 231 |
+
Figure 7: Sample snippet from the Chocolatey project. Formatting has been modified and the snippet has been abbreviated.
|
| 232 |
+
|
| 233 |
+

|
| 234 |
+
Figure 8: Samples snippet in the CommonMark.NET project. Formatting has been modified.
|
| 235 |
+
|
| 236 |
+

|
| 237 |
+
Figure 9: Sample snippet from the Humanizer project. Formatting has been modified.
|
| 238 |
+
|
| 239 |
+

|
| 240 |
+
Figure 10: Samples snippet from the Nancy project. Formatting has been modified.
|
| 241 |
+
|
| 242 |
+

|
| 243 |
+
Figure 11: Sample snippet from the OpenLiveWriter project. Formatting has been modified.
|
| 244 |
+
|
| 245 |
+

|
| 246 |
+
Figure 12: Sample snippet from the OpenLiveWriter project. Formatting has been modified.
|
| 247 |
+
|
| 248 |
+

|
| 249 |
+
Figure 13: Sample snippet from the OpenLiveWriter project. Formatting has been modified.
|
| 250 |
+
|
| 251 |
+
# B SAMPLE GENERATIONS
|
| 252 |
+
|
| 253 |
+
On the following pages, we list some sample snippets from the test set for our ExprGen task, together with suggestions produced by different models. The highlighted expressions are the ground truth expression that should be generated.
|
| 254 |
+
|
| 255 |
+
# Sample 1
|
| 256 |
+
|
| 257 |
+
if (context.Context $= =$ _MARKUP_CONTEXT_TYPE.CONTEXT_TYPE_Text && !String.IsNullOrEmpty(text)) { idx $=$ originalText.IndexOf(text) if (idx $\scriptstyle = = 0$ ) { // Drop this portion from the expected string originalText $=$ originalText.Substring(text.Length); // Update the current pointer beginDamagePointer.MoveToPointer(currentRange.End); } else if (idx > 0 && originalText.Substring(0, idx) .Replace("\r\n", string.Empty).Length $\scriptstyle = = 0$ ) { // Drop this portion from the expected string originalText $=$ originalText.Substring(text.Length $^ +$ idx); // Update the current pointer beginDamagePointer.MoveToPointer(currentRange.End); } else { return false; }
|
| 258 |
+
}
|
| 259 |
+
|
| 260 |
+
Sample snippet from OpenLiveWriter. The following suggestions were made: $\underline { { S e q } } S e q$ :
|
| 261 |
+
|
| 262 |
+
UNK_TOKEN[i] $( 0 . 6 \% )$ input[inputOffset + 1] $( 0 . 3 \% )$ UNK_TOKEN & UNK_NUM_LITERAL $( 0 . 3 \% )$
|
| 263 |
+
|
| 264 |
+
# $S e q \mathcal { N A G } ;$
|
| 265 |
+
|
| 266 |
+
MarshalUrlSupported.IndexOf(UNK_CHAR_LITERAL) $( 0 . 9 \%$ ) IsEditFieldSelected.IndexOf(UNK_CHAR_LITERAL) $( 0 . 8 \%$ ) marshalUrlSupported.IndexOf(UNK_CHAR_LITERAL) $( 0 . 7 \% )$ )
|
| 267 |
+
|
| 268 |
+
# $\underline { { \mathcal { G } \to S e q } } .$
|
| 269 |
+
|
| 270 |
+
UNK_TOKEN.IndexOf(UNK_CHAR_LITERAL) $( 2 1 . 6 \% )$ UNK_TOKEN.LastIndexOf(UNK_CHAR_LITERAL) $( 1 4 . 9 \% )$ ) UNK_TOKEN.GetHashCode() $( 8 . 1 \% )$
|
| 271 |
+
|
| 272 |
+
# $\mathcal { G } \mathcal { T } r e e .$
|
| 273 |
+
|
| 274 |
+
UNK_CHAR_LITERAL.IndexOf(UNK_CHAR_LITERAL) $( 8 . 1 \% )$ UNK_CHAR_LITERAL.IndexOf(originalText) $( 8 . 1 \%$ ) originalText.IndexOf(UNK_CHAR_LITERAL) $( 8 . 1 \%$ )
|
| 275 |
+
|
| 276 |
+
# $\mathcal { G } \mathcal { A } S \mathcal { N }$
|
| 277 |
+
|
| 278 |
+
originalText.GetHashCode() $( 3 7 . 8 \%$ ) originalText.IndexOf(UNK_CHAR_LITERAL) $( 1 4 . 8 \%$ ) originalText.LastIndexOf(UNK_CHAR_LITERAL) $( 6 . 2 \% )$ )
|
| 279 |
+
|
| 280 |
+
# $\mathcal { G } S y n$
|
| 281 |
+
|
| 282 |
+
text.IndexOf(UNK_CHAR_LITERAL) $( 2 0 . 9 \%$ ) text.LastIndexOf(UNK_CHAR_LITERAL) $( 1 2 . 4 \% )$ ) originalText.IndexOf(UNK_CHAR_LITERAL) $( 1 1 . 6 \%$ )
|
| 283 |
+
|
| 284 |
+
# $\mathcal { G } \mathcal { N A G }$
|
| 285 |
+
|
| 286 |
+
originalText.IndexOf(UNK_CHAR_LITERAL) $( 3 2 . 8 \%$ ) originalText.LastIndexOf(UNK_CHAR_LITERAL) $( 1 2 . 4 \% )$ originalText.IndexOf(text) $( 8 . 7 \% )$
|
| 287 |
+
|
| 288 |
+
# Sample 2
|
| 289 |
+
|
| 290 |
+
caretPos--;
|
| 291 |
+
if (caretPos $< ~ 0$ ) { caretPos $\qquad = \quad 0$ ;
|
| 292 |
+
}
|
| 293 |
+
int len $=$ inputString.Length;
|
| 294 |
+
if (caretPos $> =$ len) { caretPos $=$ len - 1 ;
|
| 295 |
+
}
|
| 296 |
+
|
| 297 |
+
Sample snippet from acat. The following suggestions were made: $s e q \to S e q$ :
|
| 298 |
+
|
| 299 |
+
UNK_TOKEN $^ { + 1 }$ $( 2 . 1 \% )$ )
|
| 300 |
+
UNK_TOKEN+UNK_TOKEN] $( 1 . 8 \% )$
|
| 301 |
+
UNK_TOKEN.IndexOf(UNK_CHAR_LITERAL) $( 1 . 3 \% )$
|
| 302 |
+
|
| 303 |
+
# $S e q \mathcal { N A G }$
|
| 304 |
+
|
| 305 |
+
wordToReplace - 1 (3.2%) insertOrReplaceOffset - 1 $( 2 . 9 \%$ ) inputString - 1 $( 1 . 9 \% )$
|
| 306 |
+
|
| 307 |
+
$\mathcal { G } S e q$ :
|
| 308 |
+
$1 \mathsf { e n } ~ + ~ 1 \left( 3 5 . 6 \% \right)$
|
| 309 |
+
$\mathrm { l e n } \ - \ 1 \left( 1 1 . 3 \% \right)$
|
| 310 |
+
len $> >$ UNK_NUM_LITERAL $( 3 . 5 \% )$ )
|
| 311 |
+
|
| 312 |
+
$$
|
| 313 |
+
\begin{array} { r l } & { \underbrace { \mathcal { G } \to \mathcal { T } r e e } _ { \mathrm { l e n ~ + ~ \ l e n ~ ( 2 4 . 9 \% ) } } } \\ & { \mathrm { l e n ~ - ~ \ l e n ~ ( 1 0 . 7 \% ) } } \\ & { \mathrm { 1 ~ + ~ \ 1 e n ~ ( 3 . 7 \% ) } } \end{array}
|
| 314 |
+
$$
|
| 315 |
+
|
| 316 |
+
$$
|
| 317 |
+
\begin{array} { l } { \underbrace { \mathcal { G } \mathcal { A } S \mathcal { N } } _ { \mathrm { 1 e n ~ + ~ 1 ~ } ( 2 2 . 8 \% ) } \colon } \\ { \mathrm { ~ l e n ~ - ~ 1 ~ } ( 1 0 . 8 \% ) } \\ { \mathrm { ~ l e n ~ + ~ 1 ~ e n ~ } ( 1 0 . 3 \% ) } \end{array}
|
| 318 |
+
$$
|
| 319 |
+
|
| 320 |
+
$$
|
| 321 |
+
\begin{array} { l } { { \underbrace { \mathcal { G } \to S y n } _ { \mathrm { 1 e n ~ + ~ 1 ~ } ( 1 3 . 7 \% ) } } } \\ { { \mathrm { 1 e n ~ - ~ 1 ~ } ( 1 1 . 5 \% ) } } \\ { { \mathrm { 1 e n ~ - ~ 1 } \mathrm { e n } ( 1 1 . 0 \% ) } } \end{array}
|
| 322 |
+
$$
|
| 323 |
+
|
| 324 |
+
# $\mathcal { G } \mathcal { N A G } \mathrm { : }$
|
| 325 |
+
|
| 326 |
+
$1 \mathrm { e n } + + \left( 3 3 . 6 \% \right)$ len-1 $( 2 1 . 9 \% )$ len $^ { + 1 }$ $( 1 4 . 6 \% )$ )
|
| 327 |
+
|
| 328 |
+
# Sample 3
|
| 329 |
+
|
| 330 |
+
public static String URItoPath(String uri) { if (System.Text.RegularExpressions .Regex.IsMatch(uri, "^file:\\\\[a-z,A-Z]:")) { return uri.Substring(6); } if uri.StartsWith(@"file:") { return uri.Substring(5); } return uri;
|
| 331 |
+
}
|
| 332 |
+
|
| 333 |
+
Sample snippet from acat. The following suggestions were made: $s e q \to S e q$ :
|
| 334 |
+
|
| 335 |
+
!UNK_TOKEN $( 1 1 . 1 \% )$ ) UNK_TOKEN $= = \mathrm { ~ 0 ~ } ( 3 . 6 \% )$ UNK_TOKEN $! = \mathrm { ~ 0 ~ } ( 3 . 4 \% )$
|
| 336 |
+
|
| 337 |
+
# $S e q { \mathcal { N A G } } \colon$
|
| 338 |
+
|
| 339 |
+
!uri $( 7 . 6 \% )$ , !MyVideos $( 4 . 7 \% )$ ) !MyDocuments $( 4 . 7 \% )$
|
| 340 |
+
|
| 341 |
+
$\mathcal G S e q \mathrm { : }$ action $= =$ UNK_STRING_LITERAL $( 2 2 . 6 \% )$ ) label $= =$ UNK_STRING_LITERAL $( 1 4 . 8 \%$ ) file.Contains(UNK_STRING_LITERAL) $( 4 . 6 \%$
|
| 342 |
+
|
| 343 |
+
$\mathcal { G } \mathcal { T } r e e .$ :
|
| 344 |
+
$\mathrm { u r i } \ = = \ \mathrm { u r i } \ ( 7 . 4 \% )$
|
| 345 |
+
uri.StartsWith(uri) $( 5 . 5 \% )$ uri.Contains(uri) $( 4 . 3 \% )$ 0
|
| 346 |
+
|
| 347 |
+
# $\mathcal { G } \mathcal { A } S \mathcal { N } \mathrm { : }$
|
| 348 |
+
|
| 349 |
+
uri $= =$ UNK_STRING_LITERAL $( 1 1 . 7 \%$ ) uri.Contains(UNK_STRING_LITERAL) $( 1 1 . 7 \%$ ) uri.StartsWith(UNK_STRING_LITERAL) $( 8 . 3 \% )$
|
| 350 |
+
|
| 351 |
+
# $\mathcal G \to S y n \colon$
|
| 352 |
+
|
| 353 |
+
$\mathrm { { \ u r { \dot { 1 } } } ~ } = =$ UNK_STRING_LITERAL $( 2 6 . 4 \%$ ) $\mathsf { u r i } \ \mathsf { \Omega } = \mathsf { \Omega } ^ { \mathsf { m } \mathsf { n } } \left( 8 . 5 \% \right)$ uri.StartsWith(UNK_STRING_LITERAL) $( 6 . 7 \% )$
|
| 354 |
+
|
| 355 |
+
# $\mathcal { G } \underline { { \mathcal { N A G } } } ;$
|
| 356 |
+
|
| 357 |
+
uri.Contains(UNK_STRING_LITERAL) $( 3 2 . 4 \%$ ) uri.StartsWith(UNK_STRING_LITERAL) $( 2 9 . 2 \% )$ uri.HasValue() $( 7 . 7 \% )$
|
| 358 |
+
|
| 359 |
+
# Sample 4
|
| 360 |
+
|
| 361 |
+
<table><tr><td>startPos = index + 1; int count = endPos - startPos + 1; word = (count > 0)? input.Substring(startPos, count) : String.Empty;</td></tr></table>
|
| 362 |
+
|
| 363 |
+
# Sample snippet from acat. The following suggestions were made: $\underline { { S e q } } S e q$ :
|
| 364 |
+
|
| 365 |
+
UNK_TOKEN.Trim() $( 3 . 4 \% )$ UNK_TOKEN.Replace(UNK_STRING_LITERAL, UNK_STRING_LITERAL) $( 2 . 1 \% )$ UNK_TOKEN.Replace(‘UNK_CHAR‘, ‘UNK_CHAR‘) $( 3 . 4 \% )$
|
| 366 |
+
|
| 367 |
+
# $S e q \mathcal { N A G }$
|
| 368 |
+
|
| 369 |
+
input[index] $( 1 . 4 \% )$ startPos[input] $( 0 . 9 \% )$ input[count] $( 0 . 8 \% )$
|
| 370 |
+
|
| 371 |
+
# $\underline { { \mathcal { G } \to S e q } } :$
|
| 372 |
+
|
| 373 |
+
val.Trim() $( 6 . 6 \% )$ )
|
| 374 |
+
input.Trim() $( 6 . 5 \% )$
|
| 375 |
+
input.Substring(UNK_NUM_LITERAL) $( 4 . 0 \% )$
|
| 376 |
+
|
| 377 |
+
# $\mathcal { G } \mathcal { T } r e e \mathrm { : }$
|
| 378 |
+
|
| 379 |
+
UNK_STRING_LITERAL $^ +$ UNK_STRING_LITERAL $( 8 . 4 \% )$ ) UNK_STRING_LITERAL $^ +$ startPos $( 7 . 8 \%$ ) startPos $^ +$ UNK_STRING_LITERAL $( 7 . 8 \% )$
|
| 380 |
+
|
| 381 |
+
# $\mathcal { G } \mathcal { A } S \mathcal { N }$
|
| 382 |
+
|
| 383 |
+
input.Trim() $( 1 5 . 6 \% )$ ,
|
| 384 |
+
input.Substring(0) $( 6 . 4 \% )$
|
| 385 |
+
input.Replace(UNK_STRING_LITERAL, UNK_STRING_LITERAL) $( 2 . 8 \% )$ )
|
| 386 |
+
|
| 387 |
+
# $\mathcal { G } S y n$
|
| 388 |
+
|
| 389 |
+
input.Trim() $( 7 . 8 \% )$ input.ToLower() $( 6 . 4 \% )$ input $^ +$ UNK_STRING_LITERAL $( 5 . 6 \% )$ ,
|
| 390 |
+
|
| 391 |
+
# $\mathcal { G } \mathcal { N A G } ;$
|
| 392 |
+
|
| 393 |
+
input+StartPos $( 1 1 . 8 \%$ 0
|
| 394 |
+
input+count $( 9 . 5 \% )$
|
| 395 |
+
input.Substring(startPos, endPos - count) $( 6 . 3 \% )$
|
| 396 |
+
|
| 397 |
+
# Sample 5
|
| 398 |
+
|
| 399 |
+
protected virtual void CrawlSite() { while ( !_crawlComplete { RunPreWorkChecks(); if (_scheduler.Count $> ~ 0$ ) { _threadManager.DoWork( () $= >$ ProcessPage(_scheduler.GetNext())); } else if (!_threadManager.HasRunningThreads()) { _crawlComplete $=$ true; else { _logger.DebugFormat("Waiting for links to be scheduled..."); Thread.Sleep(2500); } }
|
| 400 |
+
}
|
| 401 |
+
|
| 402 |
+
Sample snippet from Abot. The following suggestions were made: $s e q \to S e q$ :
|
| 403 |
+
|
| 404 |
+
!UNK_TOKEN $( 9 . 4 \% )$ UNK_TOKEN $> \ 0 \ ( 2 . 6 \% )$ UNK_TOKEN ! $=$ value $( 1 . 3 \% )$
|
| 405 |
+
|
| 406 |
+
# $S e q { \mathcal { N A G } } ;$
|
| 407 |
+
|
| 408 |
+
!_maxPagesToCrawlLimitReachedOrScheduled $( 2 6 . 2 \%$ ) !_crawlCancellationReported $( 2 6 . 0 \% )$ !_crawlStopReported $( 2 1 . 8 \% )$
|
| 409 |
+
|
| 410 |
+
# $\mathcal G \to S e q \mathrm { : }$
|
| 411 |
+
|
| 412 |
+
!UNK_TOKEN $( 5 4 . 9 \% )$ ) !done $( 1 8 . 8 \%$ ) !throwOnError $( 3 . 3 \% )$ )
|
| 413 |
+
|
| 414 |
+
# $\mathcal { G } \mathcal { T } r e e \mathrm { : }$
|
| 415 |
+
|
| 416 |
+
!_crawlCancellationReported $( 2 3 . 6 \%$ ) !_crawlStopReported $( 2 3 . 3 \% )$ !_maxPagesToCrawlLimitReachedOrScheduled $( 1 8 . 9 \% )$
|
| 417 |
+
|
| 418 |
+
# $\mathcal { G } \mathcal { A } S \mathcal { N } ;$
|
| 419 |
+
|
| 420 |
+
!_crawlStopReported $( 2 6 . 6 \%$ ) !_crawlCancellationReported $( 2 6 . 5 \%$ ) !_maxPagesToCrawlLimitReachedOrScheduled $( 2 5 . 8 \%$ )
|
| 421 |
+
|
| 422 |
+
# $\mathcal { G } S y n$
|
| 423 |
+
|
| 424 |
+
!_crawlStopReported $( 1 9 . 6 \%$ ) !_maxPagesToCrawlLimitReachedOrScheduled $( 1 9 . 0 \%$ ) !_crawlCancellationReported $( 1 5 . 7 \% )$ )
|
| 425 |
+
|
| 426 |
+
# $\mathcal { G } \mathcal { N A G }$
|
| 427 |
+
|
| 428 |
+
!_crawlStopReported $( 3 8 . 4 \% )$ !_crawlCancellationReported $( 3 1 . 8 \%$ ) !_maxPagesToCrawlLimitReachedOrScheduled $( 2 7 . 0 \%$ )
|
| 429 |
+
|
| 430 |
+
# Sample 6
|
| 431 |
+
|
| 432 |
+
char character $=$ originalName[i];
|
| 433 |
+
if ( character == ’<’ { ++startTagCount; builder.Append(’‘���);
|
| 434 |
+
} else if (startTagCount $> ~ 0$ ) { if (character $\scriptstyle = = \prime > \prime$ ) { --startTagCount; }
|
| 435 |
+
|
| 436 |
+
Sample snippet from StyleCop. The following suggestions were made: $\underline { { S e q } } S e q \mathrm { . }$ :
|
| 437 |
+
|
| 438 |
+
$\begin{array} { r l } { \mathrm { ~ x ~ } } & { { } = = } \end{array}$ UNK_CHAR_LITERAL $( 5 . 9 \% )$ ) UNK_TOKEN $= = \ 0 \ ( 3 . 3 \% )$ UNK_TOKEN $> \ 0 \ ( 2 . 7 \% )$
|
| 439 |
+
|
| 440 |
+
$\displaystyle \frac { S e q \to \mathcal { N } A \mathcal { G } } { ! \mathrm { ~ i ~ \Gamma ~ \mathrm { ~ \Omega ~ \mathrm { ~ = ~ } ~ 0 ~ } ~ } ( 5 . 1 \% ) } \mathrm { ~ . ~ }$ character $< \mathrm { ~ 0 ~ } ( 2 . 7 \% )$ character $( 2 . 2 \% )$ )
|
| 441 |
+
|
| 442 |
+
# $\underline { { \mathcal { G } \to S e q } } .$
|
| 443 |
+
|
| 444 |
+
character $= =$ UNK_CHAR_LITERAL $( 7 0 . 8 \%$ )
|
| 445 |
+
character $= =$ UNK_CHAR_LITERAL || character $= =$ UNK_CHAR_LITERAL $( 5 . 8 \% )$ )
|
| 446 |
+
character ! $! =$ UNK_CHAR_LITERAL $( 3 . 1 \% )$ )
|
| 447 |
+
|
| 448 |
+
# $\mathcal { G } \mathcal { T } r e e \mathrm { : }$
|
| 449 |
+
|
| 450 |
+
character $= =$ character $( 9 . 9 \%$ ) UNK_CHAR_LITERAL $= =$ character $( 8 . 2 \%$ ) character $= =$ UNK_CHAR_LITERAL $( 8 . 2 \% )$ )
|
| 451 |
+
|
| 452 |
+
# $\mathcal { G } \mathcal { A } S \mathcal { N } \mathrm { : }$
|
| 453 |
+
|
| 454 |
+
character $= =$ UNK_CHAR_LITERAL $( 4 3 . 4 \%$ ) character || character $( 3 . 3 \% )$ character $= =$ UNK_CHAR_LITERAL $= =$ UNK_CHAR_LITERAL $( 3 . 0 \% )$
|
| 455 |
+
|
| 456 |
+
# $\mathcal { G } S y n$
|
| 457 |
+
|
| 458 |
+
character $= =$ UNK_CHAR_LITERAL $( 3 9 . 6 \%$ ) character || character $= =$ UNK_STRING_LITERAL $( 5 . 2 \% )$ 0 character $= =$ UNK_STRING_LITERAL $( 2 . 8 \% )$
|
| 459 |
+
|
| 460 |
+
# $\mathcal { G } \mathcal { N A G } ;$
|
| 461 |
+
|
| 462 |
+
character $= =$ UNK_CHAR_LITERAL $( 7 5 . 5 \%$ ) character $\mathrm { ~ \ -- ~ } \ ^ { \prime } \ ^ { \prime } \ ( 2 . 6 \% )$ character ! $=$ ’UNK_CHAR $( 2 . 5 \% )$
|
| 463 |
+
|
| 464 |
+
# Sample 7
|
| 465 |
+
|
| 466 |
+
public void AllowAccess(string path)
|
| 467 |
+
{ if (path $= =$ null) throw new ArgumentNullException("path"); if !path.StartsWith(" /") ) throw new ArgumentException( string.Format( "The path \"{0}\" is not application relative." + " It must start with \"\~/\".", path), "path"); paths.Add(path);
|
| 468 |
+
}
|
| 469 |
+
|
| 470 |
+
Sample snippet from cassette. The following suggestions were made: $S e q S e q$ :
|
| 471 |
+
|
| 472 |
+
UNK_TOKEN $< \mathrm { ~ 0 ~ } ( 1 4 . 6 \% )$ !UNK_TOKEN $( 7 . 5 \% )$ ) UNK_TOKEN $= = \ 0 \ ( 3 . 3 \% )$
|
| 473 |
+
|
| 474 |
+
$\underline { { S e q \mathcal { N A G } } } ;$
|
| 475 |
+
path $= =$ UNK_STRING_LITERAL $( 1 8 . 1 \%$
|
| 476 |
+
path $< = \mathrm { ~ 0 ~ } ( 5 . 6 \% )$
|
| 477 |
+
path $\scriptstyle \mathbf { \mu = } \mathbf { \mu " } \mathbf { \mu " } \left( 4 . 8 \% \right)$ $\underline { { \mathcal { G } \to S e q } } .$
|
| 478 |
+
!UNK_TOKEN $( 4 8 . 0 \%$ )
|
| 479 |
+
!discardNulls $( 6 . 3 \% )$ ) !first $( 2 . 7 \% )$
|
| 480 |
+
|
| 481 |
+
$\mathcal { G } \mathcal { T } r e e \mathrm { : }$ !path $( 6 7 . 4 \% )$ ) path && path $( 8 . 4 \% )$ !!path $( 5 . 5 \% )$
|
| 482 |
+
|
| 483 |
+
$\mathcal { G } \mathcal { A } S \mathcal { N } \mathrm { : }$
|
| 484 |
+
!path $( 9 1 . 5 \%$ )
|
| 485 |
+
!path && !path $( 0 . 9 \%$ )
|
| 486 |
+
!path.Contains(UNK_STRING_LITERAL) $( 0 . 7 \% )$
|
| 487 |
+
$\mathcal { G } S y n \mathrm { : }$ :
|
| 488 |
+
!path $( 8 9 . 6 \%$ )
|
| 489 |
+
!path && !path $( 1 . 5 \% )$ )
|
| 490 |
+
!path.Contains(UNK_STRING_LITERAL) $( 0 . 5 \% )$ )
|
| 491 |
+
|
| 492 |
+
# $\mathcal { G } \underline { { \mathcal { N A G } } } ;$
|
| 493 |
+
|
| 494 |
+
!path $( 4 2 . 9 \% )$
|
| 495 |
+
|
| 496 |
+
!path.StartsWith(UNK_STRING_LITERAL) $( 2 3 . 8 \% )$ !path.Contains(UNK_STRING_LITERAL) $( 5 . 9 \%$ )
|
| 497 |
+
|
| 498 |
+
# Sample 8
|
| 499 |
+
|
| 500 |
+
int methodParamCount $\qquad = \quad 0$ ;
|
| 501 |
+
IEnumerable<IParameterTypeInformation> moduleParameters $=$ Enumerable<IParameterTypeInformation>.Empty;
|
| 502 |
+
if (paramCount $> 0$ ) { IParameterTypeInformation[] moduleParameterArr $=$ this.GetModuleParameterTypeInformations(Dummy.Signature, paramCount); methodParamCount $=$ moduleParameterArr.Length; if (methodParamCount $> ~ 0$ ) moduleParameters $=$ IteratorHelper.GetReadonly(moduleParameterArr);
|
| 503 |
+
}
|
| 504 |
+
IEnumerabl $\beta < \mathrm { I P }$ arameterTypeInformation> moduleVarargsParameters $=$ Enumerable<IParameterTypeInformation>.Empty;
|
| 505 |
+
if ( paramCount > methodParamCount ) { IParameterTypeInformation[] moduleParameterArr $=$ this.GetModuleParameterTypeInformations( Dummy.Signature, paramCount - methodParamCount); if (moduleParameterArr.Length $> 0$ ) moduleVarargsParameters $=$ IteratorHelper.GetReadonly(moduleParameterArr);
|
| 506 |
+
}
|
| 507 |
+
|
| 508 |
+
# Sample snippet from Afterthought. The following suggestions were made: $s e q \to S e q$ :
|
| 509 |
+
|
| 510 |
+
!UNK_TOKEN $( 1 0 . 9 \%$ ) UNK_TOKEN $= =$ UNK_TOKEN $( 4 . 6 \% )$ UNK_TOKEN $= =$ UNK_STRING_LITERAL $( 3 . 3 \% )$
|
| 511 |
+
|
| 512 |
+
$S e q { \mathcal { N A G } } ;$ dummyPinned $! = \mathrm { ~ 0 ~ } ( 2 . 2 \% )$ paramCount $! = \mathrm { ~ 0 ~ } ( 2 . 1 \% )$ dummyPinned $= = \ 0 \ ( 1 . 5 \% )$
|
| 513 |
+
|
| 514 |
+
# $\mathcal G S e q \mathrm { : }$
|
| 515 |
+
|
| 516 |
+
newValue > 0 (9.7%) zeroes $> \mathrm { ~ 0 ~ } ( 9 . 0 \% )$ paramCount $> \mathrm { ~ 0 ~ } ( 6 . 0 \% )$
|
| 517 |
+
|
| 518 |
+
# $\mathcal { G } \mathcal { T } r e e \mathrm { : }$
|
| 519 |
+
|
| 520 |
+
methodParamCount $= =$ methodParamCount $( 3 . 4 \% )$ $0 \quad = =$ methodParamCount $( 2 . 8 \%$ ) methodParamCount $= =$ paramCount $( 2 . 8 \%$ )
|
| 521 |
+
|
| 522 |
+
# $\mathcal { G } \mathcal { A } S \mathcal { N } ;$
|
| 523 |
+
|
| 524 |
+
paramCount $= = \ 0 \ ( 1 2 . 7 \% )$ paramCount $< \mathrm { ~ 0 ~ } ( 1 1 . 5 \% )$ paramCount $> \mathrm { ~ 0 ~ } ( 8 . 0 \% )$
|
| 525 |
+
|
| 526 |
+
# $\mathcal { G } S y n \mathrm { : }$
|
| 527 |
+
|
| 528 |
+
methodParamCount $> \mathrm { ~ 0 ~ } ( 1 0 . 9 \% )$ paramCount $> \mathrm { ~ 0 ~ } ( 7 . 9 \% )$ methodParamCount $! = \mathrm { ~ 0 ~ } ( 5 . 6 \% )$
|
| 529 |
+
|
| 530 |
+
# $\mathcal { G } \underline { { \mathcal { N A G } } } ;$
|
| 531 |
+
|
| 532 |
+
paramCount $>$ methodParamCount $( 3 4 . 4 \%$ ) paramCount $= =$ methodParamCount $( 1 1 . 4 \%$ ) paramCount $<$ methodParamCount $( 1 0 . 0 \%$ )
|
| 533 |
+
|
| 534 |
+
# Sample 9
|
| 535 |
+
|
| 536 |
+
public CodeLocation(int index, int endIndex, int indexOnLine, int endIndexOnLine, int lineNumber, int endLineNumber)
|
| 537 |
+
{ Param.RequireGreaterThanOrEqualToZero(index, "index"); Param.RequireGreaterThanOrEqualTo(endIndex, index, "endIndex"); Param.RequireGreaterThanOrEqualToZero(indexOnLine, "indexOnLine"); Param.RequireGreaterThanOrEqualToZero(endIndexOnLine, "endIndexOnLine") Param.RequireGreaterThanZero(lineNumber, "lineNumber"); Param.RequireGreaterThanOrEqualTo(endLineNumber, lineNumber, "endLineNumber"); // If the entire segment is on the same line, // make sure the end index is greater or equal to the start index. if $\mathrm { : | \ l i n e N u m b e r { \ell } = = \ e n d L i n e N u m b e r { \ell } | \ t a m b e r { \ell } | \ t a m b e r { \ell } { \ell } \ l }$ ) { Debug.Assert(endIndexOnLine $> =$ indexOnLine, "The end index must be greater than the start index," $^ +$ " since they are both on the same line."); } this.startPoint $=$ new CodePoint(index, indexOnLine, lineNumber); this.endPoint $=$ new CodePoint(endIndex, endIndexOnLine, endLineNumber);
|
| 538 |
+
}
|
| 539 |
+
|
| 540 |
+
Sample snippet from StyleCop. The following suggestions were made: $\underline { { S e q } } S e q$ :
|
| 541 |
+
|
| 542 |
+
!UNK_TOKEN $( 1 4 . 0 \% )$ ) UNK_TOKEN $= = \ 0 \ ( 4 . 4 \% )$ UNK_TOKEN $> \mathrm { ~ 0 ~ } ( 3 . 5 \% )$
|
| 543 |
+
|
| 544 |
+
# $S e q { \mathcal { N A G } } ;$
|
| 545 |
+
|
| 546 |
+
endIndex $< ~ 0$ $( 3 . 8 \% )$ endIndex $> 0$ $3 . 4 \% )$ endIndex $= = \ 0 \ ( 2 . 2 \% )$
|
| 547 |
+
|
| 548 |
+
# $\mathcal G \to S e q \mathrm { : }$
|
| 549 |
+
|
| 550 |
+
lineNumber $< \mathrm { ~ \ 0 ~ } ( 9 . 4 \% )$ lineNumber $= = \mathrm { ~ 0 ~ ( 7 . 4 \% ) ~ }$ lineNumber $< = \mathrm { ~ 0 ~ } ( 5 . 1 \% )$
|
| 551 |
+
|
| 552 |
+
# $\mathcal { G } \mathcal { T } r e e \mathrm { : }$
|
| 553 |
+
|
| 554 |
+
lineNumber $= =$ lineNumber $( 3 . 4 \% )$ $0 \quad = =$ lineNumber $( 2 . 5 \% )$ , lineNumber $>$ lineNumber $( 2 . 5 \% )$
|
| 555 |
+
|
| 556 |
+
# $\mathcal { G } \mathcal { A } S \mathcal { N } ;$
|
| 557 |
+
|
| 558 |
+
endLineNumber $\scriptstyle = = \ 0 \ ( 9 . 6 \% )$ endLineNumber $< \mathrm { ~ 0 ~ } ( 7 . 9 \% )$ endLineNumber $> \mathrm { ~ 0 ~ } ( 6 . 1 \% )$
|
| 559 |
+
|
| 560 |
+
#
|
| 561 |
+
|
| 562 |
+
$$
|
| 563 |
+
\begin{array} { r l } & { \frac { \mathscr { G } \mathrm { ~ ~ } S y n \mathrm { : } } { \mathrm { 1 i n e N u m b e r ~ \gamma > ~ \gamma _ 0 ~ ( 1 1 . 3 \% ) } } } \\ & { \mathrm { ~ \bot ~ i n e N u m b e r ~ \gamma = = ~ \gamma _ 0 ~ ( 7 . 3 \% ) } } \\ & { \mathrm { ~ \bot ~ i n e N u m b e r ~ \gamma _ l = ~ \gamma _ 0 ~ ( 6 . 7 \% ) } } \end{array}
|
| 564 |
+
$$
|
| 565 |
+
|
| 566 |
+
# $\mathcal { G } \underline { { \mathcal { N A G } } } ;$
|
| 567 |
+
|
| 568 |
+
lineNumber $>$ endLineNumber $( 2 0 . 7 \%$ )lineNumber $<$ endLineNumber $( 1 6 . 5 \%$ )lineNumber $= =$ endLineNumber $( 1 6 . 2 \% )$
|
| 569 |
+
|
| 570 |
+
# Sample 10
|
| 571 |
+
|
| 572 |
+
public static Bitmap RotateImage(Image img, float angleDegrees, bool upsize, bool clip) { // Test for zero rotation and return a clone of the input image if (angleDegrees $\textstyle = = 0 \mathrm { { f } }$ ) return (Bitmap)img.Clone(); // Set up old and new image dimensions, assuming upsizing not wanted // and clipping OK int oldWidth $=$ img.Width; int oldHeight $=$ img.Height; int newWidth $=$ oldWidth; int newHeight $=$ oldHeight; float scaleFactor $\qquad = ~ \perp \pm$ ; // If upsizing wanted or clipping not OK calculate the size of the // resulting bitmap if upsize || !clip { double angleRadians $=$ angleDegrees $\star$ Math.PI / 180d; double cos $=$ Math.Abs(Math.Cos(angleRadians)); double sin $=$ Math.Abs(Math.Sin(angleRadians)); newWidth $=$ (int)Math.Round((oldWidth $\star$ cos) $^ +$ (oldHeight $\star$ sin)); newHeight $=$ (int)Math.Round((oldWidth $\star$ sin) $^ +$ (oldHeight $\star$ cos)); } // If upsizing not wanted and clipping not OK need a scaling factor if (!upsize && !clip) { scaleFactor $=$ Math.Min((float)oldWidth / newWidth, (float)oldHeight / newHeight); newWidth $=$ oldWidth; newHeight $=$ oldHeight; }
|
| 573 |
+
|
| 574 |
+
Sample snippet from ShareX. The following suggestions were made: $\underline { { S e q } } S e q \mathrm { . }$ :
|
| 575 |
+
|
| 576 |
+
UNK_TOKEN $>$ 0 $( 8 . 3 \% )$ !UNK_TOKEN $( 4 . 4 \% )$ UNK_TOKEN $= = \ 0 \ ( 2 . 6 \% )$
|
| 577 |
+
|
| 578 |
+
$S e q { \mathcal { N A G } } ;$ newHeight $> \mathrm { ~ 0 ~ } ( 5 . 1 \% )$ $\beth \mathrm { { 1 i p } } ~ > ~ 0 ~ ( 3 . 2 \% )$ oldWidth $> 0$ $( 2 . 9 \% )$
|
| 579 |
+
|
| 580 |
+
# $\underline { { \mathcal { G } \to S e q } } :$
|
| 581 |
+
|
| 582 |
+
UNK_TOKEN && UNK_TOKEN $( 1 5 . 0 \%$ ) UNK_TOKEN || UNK_TOKEN $( 1 3 . 6 \% )$ ) trustedForDelegation && !appOnly $( 1 2 . 1 \% )$ )
|
| 583 |
+
|
| 584 |
+
# $\mathcal { G } \mathcal { T } r e e .$
|
| 585 |
+
|
| 586 |
+
upsize && upsize $( 2 1 . 5 \% )$ ) upsize && clip $( 1 0 . 9 \%$ ) clip && upsize $( 1 0 . 9 \% )$
|
| 587 |
+
|
| 588 |
+
# $\mathcal { G } \mathcal { A } S \mathcal { N } ;$
|
| 589 |
+
|
| 590 |
+
upsize && clip $( 1 3 . 9 \%$ ) upsize && !clip $( 9 . 8 \% )$ clip && clip $( 9 . 3 \% )$
|
| 591 |
+
|
| 592 |
+
# $\mathcal { G } S y n \mathrm { : }$
|
| 593 |
+
|
| 594 |
+
upsize && !upsize $( 6 . 9 \%$ ) clip && !upsize $( 6 . 3 \% )$ ) upsize || upsize $( 5 . 7 \% )$
|
| 595 |
+
|
| 596 |
+
# $\mathcal { G } \mathcal { N A G } ;$
|
| 597 |
+
|
| 598 |
+
upsize || clip $( 1 9 . 1 \%$ upsize && clip $( 1 8 . 8 \% )$ upsize && ! clip $( 1 2 . 2 \% )$ )
|
parse/train/Bke4KsA5FX/Bke4KsA5FX_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Bke4KsA5FX/Bke4KsA5FX_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Bke4KsA5FX/Bke4KsA5FX_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/G1jmxFOtY_/G1jmxFOtY_.md
ADDED
|
@@ -0,0 +1,374 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Learning with User-Level Privacy
|
| 2 |
+
|
| 3 |
+
Daniel Levy∗,1 Ziteng Sun∗,2 Kareem Amin3 Satyen Kale3
|
| 4 |
+
Alex Kulesza3 Mehryar Mohri3,4 Ananda Theertha Suresh3
|
| 5 |
+
|
| 6 |
+
1Stanford University 2Cornell University 3Google Research 4Courant Institute danilevy@stanford.edu, zs335@cornell.edu, {kamin, satyenkale, kulesza, mohri, theertha}@google.com
|
| 7 |
+
|
| 8 |
+
# Abstract
|
| 9 |
+
|
| 10 |
+
We propose and analyze algorithms to solve a range of learning tasks under userlevel differential privacy constraints. Rather than guaranteeing only the privacy of individual samples, user-level DP protects a user’s entire contribution $m \geq 1$ samples), providing more stringent but more realistic protection against information leaks. We show that for high-dimensional mean estimation, empirical risk minimization with smooth losses, stochastic convex optimization, and learning hypothesis classes with finite metric entropy, the privacy cost decreases as $O ( 1 / \bar { \sqrt { m } } )$ as users provide more samples. In contrast, when increasing the number of users $n$ , the privacy cost decreases at a faster $O ( 1 / n )$ rate. We complement these results with lower bounds showing the minimax optimality of our algorithms for mean estimation and stochastic convex optimization. Our algorithms rely on novel techniques for private mean estimation in arbitrary dimension with error scaling as the concentration radius $\tau$ of the distribution rather than the entire range.
|
| 11 |
+
|
| 12 |
+
# 1 Introduction
|
| 13 |
+
|
| 14 |
+
Releasing seemingly innocuous functions of a data set can easily compromise the privacy of individuals, whether the functions are simple counts [35] or complex machine learning models like deep neural networks [52, 30]. To protect against such leaks, Dwork et al. proposed the notion of differential privacy (DP). Given some data from $n$ participants in a study, we say that a statistic of the data is differentially private if an attacker who already knows the data of $n - 1$ participants cannot reliably determine from the statistic whether the $n$ -th remaining participant is Alice or Bob. With the recent explosion of publicly available data, progress in machine learning, and widespread public release of machine learning models and other statistical inferences, differential privacy has become an important standard and is widely adopted by both industry and government [32, 5, 21, 55].
|
| 15 |
+
|
| 16 |
+
The standard setting of DP described in [22] assumes that each participant contributes a single data point to the dataset, and preserves privacy by “noising” the output in a way that is commensurate with the maximum contribution of a single example. This is not the situation faced in many applications of machine learning models, where users often contribute multiple samples to the model—for example, when language and image recognition models are trained on the users’ own data, or in federated learning settings [37]. As a result, current techniques either provide privacy guarantees that degrade with a user’s increased participation or naively add a substantial amount of noise, relying on the group property of differential privacy, which significantly harms the performance of the deployed model.
|
| 17 |
+
|
| 18 |
+
To remedy this issue, we consider user-level DP, which instead of guaranteeing privacy for individual samples, protects a user’s entire contribution $\textcircled { m } \geq 1$ samples). This is a more stringent but more realistic privacy desideratum. To hold, it requires that the output of our algorithm does not significantly change when changing user’s entire contribution—i.e. possibly swapping up to $m$ samples in total. We make this formal in Definition 1. Very recently, for the reasons outlined above, there has been increasing interest in user-level DP for applications such as estimating discrete distributions under user-level privacy constraints [46], PAC learning with user-level privacy [31], and bounding user contributions in ML models [4, 26]. Differentially private SQL with bounded user contributions was proposed in [59]. User-level privacy has been also studied in the context of learning models via federated learning [49, 48, 58, 6].
|
| 19 |
+
|
| 20 |
+
In this paper, we tackle the problem of learning with user-level privacy in the central model of DP. In particular, we provide algorithms and analyses for the tasks of mean estimation, empirical risk minimization (ERM), stochastic convex optimization (SCO), and learning hypothesis classes with finite metric entropy. Our utility analyses assume that all users draw their samples i.i.d. from related distributions, a setting we refer to as limited heterogeneity. On these tasks, naively applying standard mechanisms, such as Laplace or Gaussian, or using the group property with item-level DP estimators, both yield a privacy error independent of $m$ . We first develop novel private mean estimators in high dimension with statistical and privacy error scaling with the (arbitrary) concentration radius rather than the range, and apply these to the statistical query setting [SQ; 41]. Our algorithms then rely on (privately) answering a sequence of adaptively chosen queries using users’ samples, e.g., gradient queries in stochastic gradient descent algorithms. We show that for these tasks, the additional error√ due to privacy constraints decreases as $\bar { O } ( 1 / \sqrt { m } )$ , contrasting with the naive rate—independent of $m$ . Interestingly, increasing $n$ , the number of users, decreases the privacy cost at a faster $O ( 1 / n )$ rate.
|
| 21 |
+
|
| 22 |
+
Importantly, our results imply concrete practical recommendations on sample collection, regardless of the level of heterogeneity. Indeed, increasing $m$ will yield the most value in the i.i.d. setting and will yield no improvement when the users’ distributions are arbitrary. As the real-world will lie somewhere in between, our results exhibit a regime where, for any heterogeneity, it is strictly better to collect more users (increasing $n$ ) than more samples per user (increasing $m$ ).
|
| 23 |
+
|
| 24 |
+
# 1.1 Our Contributions and Related Work
|
| 25 |
+
|
| 26 |
+
We provide a theoretical tool to construct estimators for tasks with user-level privacy constraints and apply it to a range of learning problems.
|
| 27 |
+
|
| 28 |
+
Optimal private mean estimation and uniformly concentrated queries (Section 3) We show that for a random variable in $[ - B , B ]$ concentrated in an unknown interval of radius $\tau$ (made precise in Definition 2), we can privately estimate its mean with error proportional to $\tau$ rather than $B$ , as we would obtain using standard private mean estimation techniques such as Laplace mechanism [24]. When data is concentrated in $\ell _ { \infty }$ -norm, several papers show that one can achieve an error scaling with $\tau$ rather than $B$ , either asymptotically [53], for Gaussian mean-estimation [40, 38], for sub-Gaussian symmetric distributions [18, 17] or for distributions with bounded $p$ -th moment [39]. We propose a private mean estimator (Algorithm 2) with error scaling with $\tau$ that works in arbitrary dimension when data is concentrated in $\ell _ { 2 }$ -norm (Theorem 2). In Corollary 1, we show it (optimally) solves mean estimation under user-level privacy constraints for random vectors bounded in $\ell _ { 2 }$ -norm. In Appendix D.6, we show that for uniformly concentrated queries (see Definition 3), sequentially applying Algorithm 2 privately answers $K$ adaptively chosen queries with privacy cost $\tilde { O } ( \tau \sqrt { K } / n \varepsilon )$ .
|
| 29 |
+
|
| 30 |
+
Our conclusions relate to the growing literature in adaptive data analysis. While a sequence of work [25, 9, 27, 28] use techniques from differential privacy and their answers are $( \varepsilon , \delta )$ -DP with $\varepsilon = \Theta ( 1 )$ , our work guarantees privacy for arbitrary $\varepsilon$ with the additional assumption of uniform concentration.
|
| 31 |
+
|
| 32 |
+
Empirical risk minimization (Section 4) An influential line of papers studies ERM under itemlevel privacy constraints [19, 42, 8]. Importantly, these papers assume arbitrary data, i.e., not necessarily samples from users’ distributions. The exact analog of ERM in the user-level setting is consequently less interesting as, for $n$ data points $\{ z _ { 1 } , \ldots , z _ { n } \}$ , in the worst case, each user $u \in [ n ]$ contributes $m$ copies of $z _ { u }$ and the problem reduces to the item-level setting. Instead, we consider the (related) problem of ERM when users contribute points sampled i.i.d. Assuming some regularity (A3 and A4), we develop and analyze algorithms for ERM under user-level DP constraints for convex, strongly-convex, and non-convex losses (Theorem 3).
|
| 33 |
+
|
| 34 |
+
Optimal stochastic convex optimization (Section 5) Under item-level DP (or equivalently, userlevel DP with $m = 1$ ), a sequence of work [19, 8, 10, 11, 29] establishes the constrained minimax risk as $\tilde { \Theta } ( 1 / \sqrt { n } + \sqrt { d } / ( n \varepsilon ) )$ . In this paper, with the additional assumptions that the losses are individually smooth2 and the gradients are sub-Gaussian random vectors, we prove matching upper√ (Theorem 4) and lower bounds (Theorem 5) of order $\tilde { \Theta } ( 1 / \sqrt { n m } + \sqrt { d } / ( n \sqrt { m } \varepsilon ) )$ in a regime we make precise. We leave closing the gap outside of this regime to future work.
|
| 35 |
+
|
| 36 |
+
Limit of learning with a fixed number of users (Appendix B) Finally, we resolve a conjecture of [4] and prove that with a fixed number of users, even in the limit $m \infty$ (i.e., each user has an infinite number of samples), we cannot reach zero error. In particular, we prove that for all the learning tasks we consider, the risk under user-level privacy constraints is at least $\Omega ( e ^ { - \varepsilon n } )$ regardless of $m$ . Note that this does not contradict the results above since they require $n = \Omega ( ( \log m ) / \varepsilon )$ .
|
| 37 |
+
|
| 38 |
+
Finally, we provide results in Appendix A for learning under pure user-level DP for function classes with finite metric entropy. We apply these to SCO with $\ell _ { \infty }$ constraints (Remark 1) and achieve (near)-optimal rates.
|
| 39 |
+
|
| 40 |
+
# 2 Preliminaries
|
| 41 |
+
|
| 42 |
+
Notation. Throughout this work, $d$ denotes the dimension, $n$ the number of users, and $m$ the number of samples per user. Generically, $\sigma$ will denote the sub-Gaussian parameter, $\tau$ the concentration radius, $\nu$ the variance of a random vector and $P$ a data distribution. We denote the optimization variable with $\theta \in \Theta \subset \mathbb { R } ^ { d }$ , use $z$ (or $Z$ when random) to denote the data sample supported on a space $\mathcal { Z }$ , and $\ell \colon \Theta \times \mathcal { Z } \mathbb { R }$ for the loss function. Gradients (denoted $\nabla$ ) are always taken with respect to the optimization variable $\theta$ . For a convex set $\mathcal { C }$ , $\Pi _ { \mathcal { C } }$ denotes the euclidean projection on $\mathcal { C }$ , i.e. $\begin{array} { r } { \Pi _ { \mathcal { C } } ( y ) : = \operatorname * { a r g m i n } _ { z \in \mathcal { C } } \| y - z \| _ { 2 } } \end{array}$ . We use $\mathsf { A }$ to refer to (possibly random) private mechanisms and $X ^ { n }$ as a shorthand for the dataset $( X _ { 1 } , \ldots , X _ { n } )$ . For two distributions $P$ and $Q$ , we denote by $\| \boldsymbol { P } - \boldsymbol { Q } \| _ { \mathsf { T V } }$ their total variation distance and $D _ { \mathrm { k l } } \left( P \| Q \right)$ their Kullback-Leibler divergence. For a random vector $X \sim P$ supported on $\mathbb { R } ^ { d }$ , we use $\mathrm { V a r } ( P )$ or $\operatorname { V a r } ( X )$ to denote $\mathbb { E } \left[ \lVert X - \mathbb { E } [ X ] \rVert _ { 2 } ^ { 2 } \right]$ , which is equal to the trace of the covariance matrix of $X$ .
|
| 43 |
+
|
| 44 |
+
Next, we consider differential privacy in the most general way, which only requires specifying a dataset space $\mathbb { S }$ and a distance $\mathrm { d }$ on $\mathbb { S }$ .
|
| 45 |
+
|
| 46 |
+
Definition 1 (Differential Privacy). Let $\varepsilon , \delta \geq 0$ . Let $\ u : \mathbb { S } \to \Theta$ be a (potentially randomized) mechanism. We say that A is $( \varepsilon , \delta )$ - $D P$ with respect to d if for any measurable subset $O \subset \Theta$ and all $S , S ^ { \prime } \in \mathbb { S }$ satisfying $\mathrm { d } ( S , S ^ { \prime } ) \stackrel { \cdot } { = } 1$ ,
|
| 47 |
+
|
| 48 |
+
$$
|
| 49 |
+
\mathbb { P } ( \mathsf { A } ( S ) \in O ) \le e ^ { \varepsilon } \mathbb { P } ( \mathsf { A } ( S ^ { \prime } ) \in O ) + \delta .
|
| 50 |
+
$$
|
| 51 |
+
|
| 52 |
+
$I f \delta = 0$ , we refer to this guarantee as pure differential privacy.
|
| 53 |
+
|
| 54 |
+
For a data space $\mathcal { Z }$ , choosing $\mathbb { S } = \mathcal { Z } ^ { n }$ and $\begin{array} { r } { \mathrm { d } ( S , S ^ { \prime } ) = \mathrm { d } _ { \mathsf { H a m } } ( S , S ^ { \prime } ) = \sum _ { i = 1 } ^ { n } 1 \{ z _ { i } \neq z _ { i } ^ { \prime } \} } \end{array}$ recovers the canonical setting considered in most of the literature—we refer to this as item-level differential privacy. When we wish to guarantee privacy for users rather than individual samples, we instead assume a structured dataset into which each of $n$ users contributes $m > 1$ samples. This corresponds to $\mathbb { S } = ( \mathcal { Z } ^ { m } ) ^ { n }$ such that for ${ \boldsymbol { s } } \in \mathbb { S }$ , we have
|
| 55 |
+
|
| 56 |
+
$$
|
| 57 |
+
{ \mathcal { S } } = ( S _ { 1 } , \ldots , S _ { n } ) , { \mathrm { ~ w h e r e ~ } } S _ { u } = \left\{ z _ { 1 } ^ { ( u ) } , \ldots , z _ { m } ^ { ( u ) } \right\} { \mathrm { ~ a n d ~ } } \mathrm { d } _ { { \mathfrak { u s e r } } } ( S , S ^ { \prime } ) : = \sum _ { u = 1 } ^ { n } 1 \{ S _ { u } \neq S _ { u } ^ { \prime } \} ,
|
| 58 |
+
$$
|
| 59 |
+
|
| 60 |
+
which means that, in this setting, two datasets are neighboring if at most one of the user’s contributions differ. We henceforth refer to this setting as user-level differential privacy.
|
| 61 |
+
|
| 62 |
+
Distributional assumptions. In the case of user-level privacy with $n$ users each providing $m$ samples, we assume existence of a collection of distributions $\{ \bar { P _ { u } } \} _ { u \in [ n ] }$ over $\mathcal { Z }$ . One then observes the following user-level dataset3
|
| 63 |
+
|
| 64 |
+
$$
|
| 65 |
+
{ \mathcal { S } } = ( S _ { 1 } , \ldots , S _ { n } ) { \mathrm { ~ w h e r e ~ } } S _ { u } \stackrel { \mathrm { i i d } } { \sim } P _ { u } .
|
| 66 |
+
$$
|
| 67 |
+
|
| 68 |
+
In this paper, we consider the limited heterogeneity setting, i.e. when the users have related distributions. This setting is more reflective of practice, especially in light of growing interest towards federated learning applications [37, 60].
|
| 69 |
+
|
| 70 |
+
Assumption A1 (Limited heterogeneity setting). There exists a distribution $P _ { 0 }$ over $\mathcal { Z }$ such that all the user distributions are close to $P _ { 0 }$ in total variation distance, i.e.
|
| 71 |
+
|
| 72 |
+
$$
|
| 73 |
+
\operatorname* { m a x } _ { u \in [ n ] } \lVert P _ { u } - P _ { 0 } \rVert \mathrm { { r v } } \leq \Delta ,
|
| 74 |
+
$$
|
| 75 |
+
|
| 76 |
+
where $\Delta \geq 0$ quantifies the level of heterogeneity. Note that $\Delta = 0$ corresponds to assumption $A 2$ .
|
| 77 |
+
|
| 78 |
+
Note that our TV-based definition is natural in this setting as it is closely related to the notion of discrepancy (or $d _ { A }$ distance) which plays a key role in domain adaption scenarios [47, 12]. Lower bound results have been given in terms of the discrepancy measure (see [13]), which further justify the adoption of this definition in the presence of multiple distributions.
|
| 79 |
+
|
| 80 |
+
In the case that $\Delta = 0$ , A1 reduces to the standard homogeneous setting. Many fundamental papers choose this setting when explicating minimax rates under constraints (e.g. in distributed optimization and federated learning [61] or under communication constraints [63, 15]).
|
| 81 |
+
|
| 82 |
+
Assumption A2 (Homogeneous setting). The distributions of individual users are equal, meaning there exists $P _ { 0 }$ such that for all $u \in [ n ]$ , $P _ { u } = P _ { 0 }$ .
|
| 83 |
+
|
| 84 |
+
In this paper, we develop techniques and provide matching upper and lower bounds for solving learning tasks in the homogeneous setting. In Appendix C, we prove that our techniques naturally apply to the heterogeneous setting in a black-box fashion, and for all considered problems provide meaningful guarantees under Assumption A1. Moreover, the algorithm achieves almost optimal rate whenever $\Delta$ is (polynomially) small. See the detailed statement in Theorem 9.
|
| 85 |
+
|
| 86 |
+
# 2.1 ERM and stochastic convex optimization
|
| 87 |
+
|
| 88 |
+
Assumptions on the loss. Throughout this work, we assume that the parameter space $\Theta$ is closed, convex, and satisfies $\lVert { \boldsymbol { \theta } } - { \boldsymbol { \vartheta } } \rVert _ { 2 } \leq R$ for all $\theta , \vartheta \in \Theta$ . We also assume that the loss $\ell \colon \Theta \times \mathcal { Z } \mathbb { R }$ is $G$ -Lipschitz w.r.t. the $\ell _ { 2 } { \mathrm { - n o r m } } ^ { 4 }$ , meaning that for all $z \in { \mathcal { Z } }$ , for all $\theta \in \Theta$ , $\| \nabla \ell ( \theta ; z ) \| _ { 2 } \leq G$ . We further consider the following assumptions.
|
| 89 |
+
|
| 90 |
+
Assumption A3. The function $\ell ( \cdot ; z )$ is $H$ -smooth. In other words, the gradient $\nabla \ell ( \theta ; z )$ is $H$ Lipschitz in the variable $\theta$ for all $z \in { \mathcal { Z } }$ .
|
| 91 |
+
|
| 92 |
+
Assumption A4. The random vector $\nabla \ell ( \theta ; Z )$ is $\sigma ^ { 2 }$ -sub-Gaussian for all $\theta \in \Theta$ and $Z \sim P _ { 0 }$ Equivalently, for all $v \in \mathbb { R } ^ { d }$ , $\langle v , \nabla \ell ( \theta ; Z ) \rangle$ is a $\sigma ^ { 2 }$ -sub-Gaussian random variable, i.e.,
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
\begin{array} { r } { \mathbb { E } \left[ \exp ( \langle v , \nabla \ell ( \theta ; Z ) - \mathbb { E } [ \nabla \ell ( \theta ; Z ) ] \rangle ) \right] \leq \exp \bigl ( \| v \| _ { 2 } ^ { 2 } \sigma ^ { 2 } / 2 \bigr ) . } \end{array}
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
In this work, our rates often depend on the sub-Gaussianity and Lipschitz parameters $\sigma$ and $G$ , and thus we define the shorthands ${ \widetilde { G } } : = \sigma { \sqrt { d } }$ and $\underline { { G } } : = \operatorname* { m i n } \{ G , \widetilde { G } \}$ . Intuitively, the $G$ -Lipschitzness assumption bounds the gradient in a ball around 0 (independently of $\theta$ ), while sub-Gaussianity implies that, for each $\theta$ , $\nabla \ell ( \theta ; Z )$ likely lies in $\mathbb { B } _ { 2 } ^ { d } ( \nabla \mathcal { L } ( \theta ; \bar { P } _ { 0 } ) , \widetilde { G } )$ . Generically, there is no ordering between $G$ and $\widetilde { G }$ : for linear loss $\ell ( \theta ; z ) = \langle \theta , z \rangle$ , depending on $P _ { 0 }$ , it can hold that $G \ll \widetilde G$ (e.g., $P _ { 0 } = \mathsf { U n i f } \{ - v , v \}$ for $v \in \mathbb { R } ^ { d }$ ), $\widetilde G \ll G$ (e.g., $P _ { 0 }$ is $\mathsf { N } ( \mu , \sigma ^ { 2 } I _ { d } )$ truncated in a ball around $\mu$ , with $\| \mu \| _ { 2 } \gg \sigma { \sqrt { d } } )$ or $\boldsymbol { G } \approx \boldsymbol { \widetilde { G } }$ (e.g., $P _ { 0 } = \mathsf { U n i f } \{ - 1 , + 1 \} ^ { d } )$ .
|
| 99 |
+
|
| 100 |
+
We introduce the tasks we consider in this work, namely empirical risk minimization (ERM) and stochastic convex optimization (SCO). For a collection of samples from $n$ users $\boldsymbol { S } = ( S _ { 1 } , \ldots , S _ { n } )$ , where each $S _ { u } = \{ z _ { 1 } ^ { ( u ) } , \dots , z _ { m } ^ { ( u ) } \} \in \mathcal { Z } ^ { m }$ , we define the empirical risk objectives
|
| 101 |
+
|
| 102 |
+
$$
|
| 103 |
+
\mathcal { L } ( \boldsymbol { \theta } ; S _ { u } ) : = \frac { 1 } { m } \sum _ { i = 1 } ^ { m } \ell ( \boldsymbol { \theta } ; z _ { i } ^ { ( u ) } ) \ \mathrm { ~ a n d ~ } \ \mathcal { L } ( \boldsymbol { \theta } ; S ) : = \frac { 1 } { n } \sum _ { u = 1 } ^ { n } \mathcal { L } ( \boldsymbol { \theta } ; S _ { u } ) = \frac { 1 } { m n } \sum _ { u = 1 } ^ { n } \sum _ { i = 1 } ^ { m } \ell ( \boldsymbol { \theta } ; z _ { i } ^ { ( u ) } ) .
|
| 104 |
+
$$
|
| 105 |
+
|
| 106 |
+
In the user-level setting we wish to minimize $\textstyle { \mathcal { L } } ( \theta ; S )$ under user-level privacy constraints. Going beyond the empirical risk, we also solve SCO [51], i.e. minimizing a convex population objective
|
| 107 |
+
|
| 108 |
+
when provided with samples from each users’ distributions. In the user-level setting, for a convex loss $\ell$ and a convex constraint set $\Theta$ , we observe $\begin{array} { r } { \pmb { \mathcal { S } } = ( S _ { 1 } , \dots , S _ { n } ) \sim \otimes _ { \pmb { u } \in [ n ] } ( P _ { u } ) ^ { m } } \end{array}$ and wish to
|
| 109 |
+
|
| 110 |
+
$$
|
| 111 |
+
\operatorname* { m i n i m i z e } _ { \theta \in \Theta } \frac { 1 } { n } \sum _ { u \in [ n ] } \mathcal { L } ( \theta ; P _ { u } ) : = \frac { 1 } { n } \sum _ { u \in [ n ] } \mathbb { E } _ { P _ { u } } [ \ell ( \theta ; Z ) ] .
|
| 112 |
+
$$
|
| 113 |
+
|
| 114 |
+
In the homogeneous case (Assumption A2), this reduces to the classic SCO setting:
|
| 115 |
+
|
| 116 |
+
$$
|
| 117 |
+
\operatorname* { m i n i m i z e } _ { \theta \in \Theta } \mathcal { L } ( \theta ; P _ { 0 } ) : = \mathbb { E } _ { P _ { 0 } } [ \ell ( \theta ; Z ) ] .
|
| 118 |
+
$$
|
| 119 |
+
|
| 120 |
+
# 2.2 Uniform concentration of queries
|
| 121 |
+
|
| 122 |
+
Let $\phi : \mathcal { Z } \to \mathbb { R } ^ { d }$ be a $d$ -dimensional query function. We define concentration of random variables and uniform concentration of multiple queries as follows.
|
| 123 |
+
|
| 124 |
+
Definition 2. A (random) sample $X ^ { n }$ supported on $[ - B , B ] ^ { d }$ is $( \tau , \gamma )$ -concentrated (and we call $\tau$ the “concentration radius”) if there exists $x _ { 0 } \in [ - B , B ] ^ { d }$ such that with probability at least $1 - \gamma ,$
|
| 125 |
+
|
| 126 |
+
$$
|
| 127 |
+
\operatorname* { m a x } _ { i \in [ n ] } \lVert X _ { i } - x _ { 0 } \rVert _ { 2 } \leq \tau .
|
| 128 |
+
$$
|
| 129 |
+
|
| 130 |
+
Definition 3 (Uniform concentration of vector queries). Let $\mathcal { Q } _ { B } ^ { d } = \{ \phi \colon \mathcal { Z } [ - B , B ] ^ { d } \}$ be $a$ family of queries with bounded range. For $Z ^ { n } = ( Z _ { 1 } , \ldots , Z _ { n } ) \stackrel { \mathrm { i i d } } { \sim } P$ , we say that $( Z ^ { n } , \mathcal { Q } _ { B } ^ { d } )$ is $( \tau , \gamma )$ -uniformly-concentrated if with probability at least $1 - \gamma$ , we have
|
| 131 |
+
|
| 132 |
+
$$
|
| 133 |
+
\operatorname* { m a x } _ { i \in [ n ] } \operatorname* { s u p } _ { \phi \in \mathcal { Q } _ { B } ^ { d } } \Big \| \phi ( Z _ { i } ) - \mathbb { E } _ { Z \sim P } [ \phi ( Z ) ] \Big \| _ { 2 } \leq \tau .
|
| 134 |
+
$$
|
| 135 |
+
|
| 136 |
+
In this work, we will often consider $\sigma ^ { 2 }$ -sub-Gaussian random variables (or vectors), which are concentrated according to Definition 2. For example, if $X ^ { n }$ is drawn i.i.d. from a $\sigma ^ { 2 }$ -sub-Gaussian random vector supported on $[ - B , B ] ^ { d }$ , then it is $( \sigma \sqrt { d \log ( 2 n / \gamma ) } , \gamma )$ -concentrated around its mean (see, e.g., [56]). Finally, we define a distance between random variables (and estimators).
|
| 137 |
+
|
| 138 |
+
Definition 4 ( $\beta$ -close Random Variables). For any two random variables $X _ { 1 } \sim P _ { 1 }$ and $X _ { 2 } \sim P _ { 2 }$ , we say $X _ { 1 }$ and $X _ { 2 }$ are $\beta$ -close, if $\| P _ { 1 } - P _ { 2 } \| _ { \mathsf { T V } } \leq \bar { \beta }$ . We use the notation $X _ { 1 } \sim _ { \beta } X _ { 2 }$ if $X _ { 1 }$ and $X _ { 2 }$ are $\beta$ -close.
|
| 139 |
+
|
| 140 |
+
$\beta$ -closeness is useful as, in many of our results, the private estimator we propose returns a simple unbiased estimate with high probability and is bounded otherwise. Thus, it suffices to do the analysis in the “nice” case and crudely bound the error otherwise.
|
| 141 |
+
|
| 142 |
+
# 3 High Dimensional Mean Estimation and Uniformly Concentrated Queries
|
| 143 |
+
|
| 144 |
+
In this section, we present a private mean estimator with privacy cost proportional to the concentration radius. Using these techniques, we show that, under uniform concentration, we answer adaptivelychosen queries with privacy cost proportional to the concentration radius instead of the whole range. Our theorems guarantee that the estimator is $\beta$ -close (with $\beta$ exponentially small in $n$ ) to a simple unbiased estimator with small noise. We further show how to directly translate these results into bounds on the estimator error, which we demonstrate by providing tight bounds on estimating the mean of $\ell _ { 2 }$ -bounded random vectors under user-level DP constraints (Corollary 1).
|
| 145 |
+
|
| 146 |
+
Given i.i.d samples $X ^ { n }$ from a distribution $P$ supported on $\mathbb { R } ^ { d }$ with mean $\mu$ , the goal of mean estimation is to design a private estimator that minimizes the $\mathbb { E } \left[ \lVert \mathsf { A } ( X ^ { n } ) - \dot { \mu } \rVert _ { 2 } ^ { 2 } \right]$ . We focus on distributions with bounded supprot $[ - B , B ] ^ { d }$ . However, our algorithm also generalize to the case when the mean is guaranteed to be in $[ - B , B ] ^ { d }$ . In the user-level setting (in the homogeneous case), one observes a dataset $s$ sampled as in (2) and wishes to minimize $\mathbb { E } \bar { [ \| \mathsf { A } ( S ) - \mathbb { E } P _ { 0 } \| \bar { 2 } ] }$ under user-level privacy constraints. We first focus on the scalar case.
|
| 147 |
+
|
| 148 |
+
Mean estimation in one dimension. The algorithm uses a two-stage procedure, similar in spirit to those of [53], [40], and [39]. In the first stage of this procedure, we use the approximate median estimation in [27], detailed in Algorithm 6 in Appendix D.1, to privately estimate a crude interval
|
| 149 |
+
|
| 150 |
+
Require: $X ^ { n } : = ( X _ { 1 } , X _ { 2 } , . . . , X _ { n } ) \in [ - B , B ] ^ { n }$ , τ : concentration radius, privacy parameter $\varepsilon > 0$ . 1: $[ a , b ] = \mathbf { P r i v a t e R a n g e } ( X ^ { n } , \varepsilon / 2 , \tau , B )$ with $| b - a | = 4 \tau$ . {Algorithm 6 in Appendix D.1. $\}$ 2: Sample $\textstyle \xi \sim \mathrm { L a p } { \bigl ( } 0 , { \frac { 8 \tau } { \varepsilon n } } { \bigr ) }$ and return
|
| 151 |
+
|
| 152 |
+
$$
|
| 153 |
+
\bar { \mu } = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \Pi _ { [ a , b ] } ( X _ { i } ) + \xi ,
|
| 154 |
+
$$
|
| 155 |
+
|
| 156 |
+
where $\Pi _ { [ a , b ] } ( x ) = \operatorname* { m a x } \{ a , \operatorname* { m i n } \{ x , b \} \}$ .
|
| 157 |
+
|
| 158 |
+
in which the means lie, with accuracy $\Theta ( \tau )$ . The second stage clips the mean around this interval, reducing the sensitivity from $O ( B )$ to $O ( \tau )$ , and adds the appropriate Laplace noise. With high probability, we can recover the guarantee of the Laplace mechanism with smaller sensitivity since the samples are concentrated in a radius $\tau$ . We present the formal guarantees of Algorithm 1 in Theorem 1 and defer its proof to Appendix D.2.
|
| 159 |
+
|
| 160 |
+
Theorem 1. Let $X ^ { n }$ be a dataset supported on $[ - B , B ]$ . The output of Algorithm 1, denoted by ${ \mathsf { A } } ( X ^ { n } )$ , is ${ \varepsilon } { - } D P .$ Furthermore, if $X ^ { n }$ is $( \tau , \gamma )$ -concentrated, it holds that
|
| 161 |
+
|
| 162 |
+
$$
|
| 163 |
+
\mathsf { A } ( X ^ { n } ) \sim _ { \beta } \frac { 1 } { n } \sum _ { i = 1 } ^ { n } X _ { i } + L a p \bigg ( \frac { 8 \tau } { n \varepsilon } \bigg ) ,
|
| 164 |
+
$$
|
| 165 |
+
|
| 166 |
+
where $\begin{array} { r } { \beta = \operatorname* { m i n } \left\{ 1 , \gamma + \frac { B } { \tau } \exp \left( - \frac { n \varepsilon } { 8 } \right) \right\} } \end{array}$ . Moreover, Algorithm $I$ runs in time ${ \tilde { O } } ( n + \log ( B / \tau ) )$
|
| 167 |
+
|
| 168 |
+
Compared to [40, 38, 39], our algorithm runs in time ${ \tilde { O } } ( n + \log ( B / \tau ) )$ instead of ${ \tilde { O } } ( n + B / \tau )$ owing to the approximate median estimation algorithm in [27], which is faster when $\tau \ll B$ .
|
| 169 |
+
|
| 170 |
+
Mean estimation in arbitrary dimension. In the general $d$ -dimensional case, if $X ^ { n }$ is concentrated in $\ell _ { \infty }$ -norm, one simply applies Algorithm 1 to each dimension. However, when $X ^ { n }$ is concentrated in $\ell _ { 2 }$ -norm, naively upper bounding $\ell _ { \infty }$ -norm by the $\ell _ { 2 }$ -norm will incur a superfluous $\sqrt { d }$ factor: if $\| v \| _ { 2 } \leq \rho$ , each $| v _ { j } |$ is possibly as large as $\rho$ . To remedy this issue, we use the random rotation trick in [3, 54]. This guarantees that all coordinates have roughly the same range: for √ $v \in \mathbb { R } ^ { d }$ , with high probability, $\| R \dot { v } \| _ { \infty } \leq \tilde { O } ( \| v \| _ { 2 } / \sqrt { d } )$ , where $R$ is the random rotation. We present this procedure in Algorithm 2 and its performance in Theorem 2.
|
| 171 |
+
|
| 172 |
+
Require: $X ^ { n } : = ( X _ { 1 } , X _ { 2 } , . . . , X _ { n } ) , X _ { i } \ \in \ [ - B , B ] ^ { d } , \tau , \gamma$ : concentration radius and probability, privacy parameter $\varepsilon , \delta > 0$ .
|
| 173 |
+
1: Let $D = { \mathsf { D i a g } } ( \omega )$ where $\omega$ is sampled uniformly from $\{ \pm 1 \} ^ { d }$ .
|
| 174 |
+
2: Set $U = d ^ { - 1 / 2 } \mathbf { H } D$ , where $\mathbf { H }$ is a $d$ -dimensional Hadamard matrix. For all $i \in [ n ]$ , compute $Y _ { i } = U X _ { i }$ .
|
| 175 |
+
3: Let $\begin{array} { r } { \varepsilon ^ { \prime } = \frac { \varepsilon } { \sqrt { 8 d \log ( 1 / \delta ) } } , \tau ^ { \prime } = 1 0 \tau \sqrt { \frac { \log ( d n / \gamma ) } { d } } } \end{array}$ log(dn/γ)d . For j ∈ [d], compute $\overset { \sim } { \underset { } { \bar { Y } } } ( j ) = \mathbf { W i n s o r i z e d M e a n 1 D } \Big ( \{ Y _ { i } ( j ) \} _ { i \in [ n ] } , \varepsilon ^ { \prime } , \tau ^ { \prime } , \sqrt { d } B \Big ) .$
|
| 176 |
+
4: return ${ \bar { X } } = U ^ { - 1 } { \bar { Y } }$ .
|
| 177 |
+
|
| 178 |
+
Theorem 2. Let $\mathsf { A } ( X ^ { n } ) = { \mathsf { W i n s o r i z e d M e a n H i g h D } } ( X ^ { n } , \varepsilon , \delta , \tau , B , \gamma )$ be the output of Algorithm 2. $\mathsf { A } ( X ^ { n } )$ is $( \varepsilon , \delta )$ -DP. Furthermore, if $X ^ { n }$ is $( \tau , \gamma )$ -concentrated in $\ell _ { 2 }$ -norm, there exists an estimator $\mathsf { A } ^ { \prime } ( X ^ { n } )$ such that ${ \mathsf { A } } ( X ^ { n } ) \sim _ { \beta } { \mathsf { A } } ^ { \prime } ( { \bar { X } } ^ { n } )$ and
|
| 179 |
+
|
| 180 |
+
$$
|
| 181 |
+
\mathbb { E } [ \mathsf { A } ^ { \prime } ( X ^ { n } ) | X ^ { n } ] = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } X _ { i } a n d \mathrm { ~ } \mathrm { V a r } ( \mathsf { A } ^ { \prime } ( X ^ { n } ) | X ^ { n } ) \leq c _ { 0 } \frac { d \tau ^ { 2 } \log ( d n / \alpha ) \log ( 1 / \delta ) } { n ^ { 2 } \varepsilon ^ { 2 } } ,
|
| 182 |
+
$$
|
| 183 |
+
|
| 184 |
+
We present the proof of Theorem 2 in Appendix D.3. We are able to transfer both Theorem 1 and Theorem 2 into finite-sample estimation error bounds for various types of concentrated distributions and obtain near optimal guarantees (see Appendix D.5 for an example in mean estimation of subGaussian distributions). The next corollary characterizes the risk of mean estimation for distributions supported on an $\ell _ { 2 }$ -bounded domain with user-level DP guarantees (see Appendix D.4 for the proof).
|
| 185 |
+
|
| 186 |
+
Corollary 1. Assume $A 2$ holds with $P _ { 0 }$ supported on $\mathbb { B } _ { 2 } ^ { d } ( 0 , B )$ with mean $\mu$ . Given ${ \boldsymbol { s } } \ =$ $( S _ { 1 } , S _ { 2 } , . . . , S _ { n } )$ , $| S _ { u } | = m$ , consisting of m i.i.d. samples from $P _ { u }$ . There exists an $( \varepsilon , \delta )$ -userlevel $D P$ algorithm $\mathsf { A } ( \boldsymbol { S } )$ such that, if $\dot { n } \geq ( c _ { 1 } \sqrt { d \log ( 1 / \delta ) } / \varepsilon ) \log ( m ( d n + n ^ { 2 } \varepsilon ^ { 2 } ) )$ for a numerical constant c1, we have5
|
| 187 |
+
|
| 188 |
+
$$
|
| 189 |
+
\mathbb { E } \left[ \| \mathsf { A } ( \pmb { \mathscr { S } } ) - \mu \| _ { 2 } ^ { 2 } \right] = \frac { \mathrm { V a r } ( P _ { 0 } ) } { m n } + \tilde { O } \bigg ( \frac { d B ^ { 2 } } { m n ^ { 2 } \varepsilon ^ { 2 } } \bigg ) .
|
| 190 |
+
$$
|
| 191 |
+
|
| 192 |
+
Note that $\mathrm { V a r } ( P _ { 0 } ) \le B ^ { 2 }$ for any $P _ { 0 }$ supported on $\mathbb { B } _ { 2 } ^ { d } ( 0 , B )$ . Replacing ${ \mathrm { V a r } } ( P _ { 0 } )$ by $B ^ { 2 }$ , the bound 2is minimax optimal up to logarithmic factors. When onsame error bounds holds (up to constant) for estimating $A l$ with for a $\Delta \leq \mathsf { p o l y } ( d , \frac { 1 } { n } , \frac { 1 } { m } , \frac { 1 } { \varepsilon } )$ , the $\mathbb { E } _ { Z \sim P _ { u } } [ Z ]$ $u \in [ n ]$
|
| 193 |
+
|
| 194 |
+
Note that algorithms in [38, 39], which focus on estimating the mean of $d$ -dimensional subGaussian distributions, can also be used to estimate the mean of $\ell _ { 2 }$ -bounded distributions since bounded random variables are also subGaussian. However, applying these algorithms directly will incur a superfluous $d$ factor in the mean square error. We void this using the random rotation trick in Algorithm 2.
|
| 195 |
+
|
| 196 |
+
Answering multiple queries. We end this section by noting that, when a family of queries $\mathcal { Q }$ is uniformly concentrated (as made precise in Definition 3), we answer sequences of √ $K d$ -dimensional, adaptively chosen queries with error scaling as ${ \tilde { O } } ( { \sqrt { d K } } \tau / ( n \varepsilon ) )$ by applying Algorithm 2 to $\{ \phi _ { k } ( Z _ { i } ) \} _ { i \in [ n ] }$ with the right $( \varepsilon _ { 0 } , \delta _ { 0 } )$ . We make this formal in Theorem 10 in Appendix D.6.
|
| 197 |
+
|
| 198 |
+
# 4 Empirical Risk Minimization with User-Level Differential Privacy
|
| 199 |
+
|
| 200 |
+
In this section, we present an algorithm to solve the ERM objective of (3) under user-level DP constraints. We apply the results of Section 3 by noting that the SQ framework encompasses stochastic gradient methods. Informally, one can sequentially choose queries $\phi _ { k } ( z ) = \nabla \ell ( \theta _ { k } ; z )$ and, for a stepsize $\eta$ , update $\theta _ { k + 1 } = \Pi _ { \Theta } \big ( \dot { \theta } _ { k } - \eta v _ { k } \big )$ , where $v _ { k }$ is the answer to the $k$ -th query. For the results to hold, we require a uniform concentration result over the appropriate class of queries.
|
| 201 |
+
|
| 202 |
+
Uniform concentration of stochastic gradients The class of queries for stochastic gradient methods is $\mathcal { Q } _ { \sf e r m } ~ : = ~ \{ \nabla \ell ( \theta ; \cdot ) ~ : ~ \theta ~ \in ~ \bar { \Theta } \}$ . We prove that when assumptions A3 and A4 hold, $( \{ \nabla \ell ( \cdot ; S _ { u } ) \} _ { u \in [ n ] } , \mathcal { Q } _ { \mathrm { e r m } } )$ is $( \tilde { O } ( \sigma \sqrt { d / m } ) , \alpha )$ -uniformly concentrated. The next proposition is a simplification of the result of [50] under the (stronger) assumption A3 that $\ell$ is uniformly $H$ -smooth. The proof, which we defer to Appendix E.1, hinges on a covering number argument.
|
| 203 |
+
|
| 204 |
+
Proposition 1 (Concentration of random gradients). Let $S _ { u } \overset { \mathrm { i i d } } { \sim } P _ { u }$ $| S _ { u } | = m$ for $u \in [ n ]$ and $\alpha \geq 0$ $1 - \alpha$
|
| 205 |
+
|
| 206 |
+
$$
|
| 207 |
+
\operatorname* { m a x } _ { u \in [ n ] } \operatorname* { s u p } _ { \theta \in \Theta } \| \nabla \mathcal { L } ( \theta ; S _ { u } ) - \nabla \mathcal { L } ( \theta ; P _ { u } ) \| _ { 2 } = O \left( \sigma \sqrt { \frac { d \log \left( \frac { R H m } { d \sigma } \right) } { m } + \frac { \log \left( \frac { n } { \alpha } \right) } { m } } \right) .
|
| 208 |
+
$$
|
| 209 |
+
|
| 210 |
+
Stochastic gradient methods We state classical convergence results for stochastic gradient methods for both convex and non-convex losses under smoothness. For a function $F : \Theta \to \mathbb { R }$ , we assume access to a first-order stochastic oracle $\mathsf { O } _ { F , \nu ^ { 2 } }$ , i.e., a random mapping such that for all $\theta \in \Theta$ ,
|
| 211 |
+
|
| 212 |
+
$$
|
| 213 |
+
\mathsf { O } _ { F , \nu ^ { 2 } } ( \theta ) = \nabla \widehat { F } ( \theta ) \mathrm { ~ w i t h ~ } \mathbb { E } \Big [ \nabla \widehat { F } ( \theta ) \Big ] = \nabla F ( \theta )
|
| 214 |
+
$$
|
| 215 |
+
|
| 216 |
+
$$
|
| 217 |
+
\operatorname { V a r } \left( \nabla { \widehat { F } } ( \theta ) \right) \leq \nu ^ { 2 } .
|
| 218 |
+
$$
|
| 219 |
+
|
| 220 |
+
We abstract optimization algorithms in the following way: an algorithm consists of an output set $\mathcal { O }$ , a sub-routine $\mathsf { Q u e r y : } \mathcal { O } \to \Theta$ that takes the last output and indicates the next point to query and a sub-routine Update : ${ \mathcal { O } } \times \mathbb { R } ^ { d } \to { \mathcal { O } }$ that takes the previous output and a stochastic gradient and returns the next output. After $T$ steps, we call Aggregate : $O ^ { * } \to \Theta$ , which takes all the previous outputs and returns the final point. (See Algorithm 7 in Appendix E.2 for how to instantiate generic first-order optimization in this framework.) We detail in Proposition 4 in Appendix E.2 standard convergence results for variations of (projected) stochastic gradient descent (SGD). We introduce this abstraction to forego the details of each specific algorithm and instead focus on the privacy and utility guarantees.
|
| 221 |
+
|
| 222 |
+
Algorithm We recall the ERM setting with user-level DP. We observe $\boldsymbol { S } = ( S _ { 1 } , \ldots , S _ { n } )$ with $S _ { u } \in \mathcal { Z } ^ { m }$ for $u \in [ n ]$ and wish to solve the constrained optimization problem with objective in (3). We present our method in Algorithm 3 and provide utility and privacy guarantees in Theorem 3.
|
| 223 |
+
|
| 224 |
+
# Algorithm 3 Winsorized First-Order Optimization
|
| 225 |
+
|
| 226 |
+
1: Input: Number of iterations $T$ , optimization algorithm $\{ \mathcal { O } , \mathsf { Q u e r y }$ , Update, Aggregate}, privacy
|
| 227 |
+
parameters $( \varepsilon , \delta )$ , data $\boldsymbol { S } = ( S _ { 1 } , \ldots , S _ { n } )$ , initial output $o _ { 0 }$ , parameter set $\Theta$ , concentration radius
|
| 228 |
+
2: Set $\tau$ , probability $\begin{array} { r } { \varepsilon ^ { \prime } = \frac { \varepsilon } { 2 \sqrt { 2 T \log ( 2 / \delta ) } } } \end{array}$ $\gamma$ . and $\begin{array} { r } { \delta ^ { \prime } = \frac { \delta } { 2 T } } \end{array}$
|
| 229 |
+
3: for $t = 0 , \ldots , T - 1$ do
|
| 230 |
+
4: $\theta _ { t } \gets \mathsf { Q u e r y } ( o _ { t } )$ .
|
| 231 |
+
5: For each user $u \in [ n ]$ , compute
|
| 232 |
+
6: Compute $\bar { g } _ { t } =$ Winso $\begin{array} { r l r } & { } & { g _ { t } ^ { ( u ) } = \nabla \mathcal { L } ( \theta _ { t } ; S _ { u } ) = \displaystyle \frac { 1 } { m } \sum _ { j \in [ m ] } \nabla \ell ( \theta _ { t } ; z _ { j } ^ { ( u ) } ) . } \\ & { } & { \mathrm { ~ } \mathrm { ~ r i z e d M e a n H i g h } \mathbf { D } ( \{ g _ { t } ^ { ( u ) } \} _ { u \in [ n ] } , \varepsilon ^ { \prime } , \delta ^ { \prime } , \tau , G , \gamma ) . } \end{array}$
|
| 233 |
+
7: $o _ { t + 1 } \gets \mathsf { U p d a t e } ( o _ { t } , \bar { g } _ { t } )$ .
|
| 234 |
+
8: end for
|
| 235 |
+
9: return $\bar { \theta } \gets \mathsf { A g g r e g a t e } ( o _ { 0 } , \ldots , o _ { T } )$ .
|
| 236 |
+
|
| 237 |
+
Theorem 3 (Privacy and utility guarantees for ERM). Assume $A 2$ holds and recall that ${ \widetilde { G } } = \sigma { \sqrt { d } } ,$ , assume6 $n = \tilde { \Omega } ( \sqrt { d T } / \varepsilon )$ and let $\widehat { \theta }$ be the output of Algorithm 3. There exists variants of projected $S G D$ (e.g. the ones we present in Proposition 4) such that, with probability greater than $1 - \gamma$ :
|
| 238 |
+
|
| 239 |
+
(i) If for all $z \in \mathcal { Z } , \ell ( \cdot ; z )$ is convex, then
|
| 240 |
+
|
| 241 |
+
$$
|
| 242 |
+
\mathbb { E } \bigg [ \mathcal { L } ( \widehat { \theta } ; \mathcal { S } ) - \operatorname* { i n f } _ { \theta ^ { \prime } \in \Theta } \mathcal { L } ( \theta ^ { \prime } ; \mathcal { S } ) \bigg | \mathcal { S } \bigg ] = \tilde { O } \Bigg ( \frac { R ^ { 2 } H } { T } + R \widetilde { G } \frac { \sqrt { d } } { n \sqrt { m } \varepsilon } \Bigg ) .
|
| 243 |
+
$$
|
| 244 |
+
|
| 245 |
+
(ii) If for all $z \in \mathcal { Z } , \ell ( \cdot ; z )$ is $\mu$ -strongly-convex, then
|
| 246 |
+
|
| 247 |
+
$$
|
| 248 |
+
\mathbb { E } \bigg [ \mathcal { L } ( \widehat { \theta } ; \mathcal { S } ) - \operatorname* { i n f } _ { \theta ^ { \prime } \in \Theta } \mathcal { L } ( \theta ^ { \prime } ; \mathcal { S } ) \bigg | \mathcal { S } \bigg ] = \widetilde { \mathcal { O } } \bigg ( G R \exp \big ( - \frac { \mu } { H } T \big ) + \widetilde { G } ^ { 2 } \frac { d } { \mu n ^ { 2 } m \varepsilon ^ { 2 } } \bigg ) .
|
| 249 |
+
$$
|
| 250 |
+
|
| 251 |
+
(iii) Otherwise, defining the gradient mapping7 $\begin{array} { r } { { \sf G } _ { F , \gamma } ( \theta ) : = \frac { 1 } { \gamma } [ \theta - \Pi _ { \Theta } ( \theta - \gamma \nabla F ( \theta ) ) ] . } \end{array}$ , we have
|
| 252 |
+
|
| 253 |
+
$$
|
| 254 |
+
\mathbb { E } \bigg [ \| \mathsf { G } _ { \mathcal { L } ( \cdot ; S ) , 1 / H } ( \widehat { \theta } ) \| _ { 2 } ^ { 2 } | S \bigg ] = \tilde { O } \bigg ( \frac { H ^ { 2 } R } { T } + H R \widetilde G \frac { \sqrt { d } } { n \sqrt { m } \varepsilon } \bigg ) .
|
| 255 |
+
$$
|
| 256 |
+
|
| 257 |
+
For $\varepsilon \le 1 , \delta > 0$ , Algorithm $^ 3$ instantiated with any first-order gradient algorithm is $( \varepsilon , \delta )$ -user-level $D P .$ In the case that only $A l$ holds, the same guarantees hold whenever $\Delta \leq \mathsf { p o l y } ( d , \frac { 1 } { n } , \frac { 1 } { m } , \frac { 1 } { \varepsilon } )$ .
|
| 258 |
+
|
| 259 |
+
We present the proof in Appendix E.3. For the utility guarantees, the crux of the proof resides in Theorem 10: as well as ensuring small excess loss in expectation, the SQ algorithm produces with high probability a sample from the stochastic gradient oracle $\operatorname { O } _ { \mathcal { L } ( \cdot ; S ) , \nu ^ { 2 } }$ where $\begin{array} { r } { \nu ^ { 2 } = { \tilde { O } } ( T { \widetilde G } ^ { 2 } \frac { d } { n ^ { 2 } m \varepsilon ^ { 2 } } ) } \end{array}$ When this happens for all $T$ steps, the analysis of stochastic gradient methods provide the desired regret. The privacy guarantees follow from the strong composition theorem of [23].
|
| 260 |
+
|
| 261 |
+
Importantly, when the function exhibits (some) strong-convexity (which will be the case for any regularized objective), we are able to localize the optimal parameter—up to the privacy cost—in ${ \cal \tilde { O } } ( H / \mu )$ steps. This will be particularly important in Section 5.
|
| 262 |
+
|
| 263 |
+
Corollary 2 (Localization). Let $\widehat { \theta }$ be the output of Algorithm $^ 3$ on the ERM problem of (3). Assume that $\ell ( \cdot ; z )$ is $\mu$ -strongly-convex for all $z \in { \mathcal { Z } }$ , that $n = \tilde { \Omega } ( \sqrt { d H / \mu } )$ and set $T =$ $\begin{array} { r } { \frac { H } { \mu } \log \left( n ^ { 2 } m ( \underline { { G } } / \widetilde G ^ { 2 } ) \frac { \mu R \varepsilon ^ { 2 } } { d } \right) } \end{array}$ and $\begin{array} { r } { \gamma = { \frac { \sigma ^ { 2 } d ^ { 2 } } { \mu ^ { 2 } n ^ { 2 } m \varepsilon ^ { 2 } R ^ { 2 } } } } \end{array}$ . For $\theta _ { S } ^ { * } \in \mathrm { a r g m i n } _ { \theta ^ { \prime } \in \Theta } \mathcal { L } ( \theta ^ { \prime } ; S )$ , it holds8
|
| 264 |
+
|
| 265 |
+
$$
|
| 266 |
+
\mathbb { E } [ \| \widehat { \theta } - \theta _ { S } ^ { * } \| _ { 2 } ^ { 2 } ] = \tilde { O } \bigg ( \frac { \sigma ^ { 2 } d ^ { 2 } } { \mu ^ { 2 } n ^ { 2 } m \varepsilon ^ { 2 } } \bigg ) .
|
| 267 |
+
$$
|
| 268 |
+
|
| 269 |
+
# 5 Stochastic Convex Optimization with User-level Privacy
|
| 270 |
+
|
| 271 |
+
In this section we address the SCO task of (5) under user-level DP constraints. Our approach (which we show in Algorithm 4) solves a sequence of carefully regularized ERM problems, drawing on√ the guarantees of the previous section. Recall that $\widetilde { G } = \sigma \sqrt { d }$ and $\underline { { G } } = \operatorname* { m i n } \{ G , \widetilde { G } \}$ , and that $\ell$ is $H$ -smooth under assumption A3. In this section, we assume that $\ell$ is convex. We first present our results and state an upper and lower bound for SCO with user-level privacy constraints.
|
| 272 |
+
|
| 273 |
+
Theorem 4 (Phased ERM for SCO). Algorithm $^ { 4 }$ is user-level $( \varepsilon , \delta )$ -DP. When $A 2$ holds and $n =$ $\tilde { \Omega } ( \operatorname* { m i n } \{ \sqrt [ 3 ] { d ^ { 2 } m H ^ { 2 } R ^ { 2 } / ( G { \underline { { G } } } \varepsilon ^ { 4 } ) } , H R \sqrt { m } / ( \sigma \varepsilon ) \} )$ , or, equivalently, $\begin{array} { r } { H = \tilde { O } ( \sqrt { \frac { n ^ { 2 } \varepsilon ^ { 2 } \sigma ^ { 2 } } { R ^ { 2 } m } + \frac { G \bar { a } ^ { 3 } \varepsilon ^ { 4 } } { d ^ { 2 } R ^ { 2 } m } } ) f o r } \end{array}$ r all $P$ and $\ell$ satisfying Assumptions $A 3$ and A4, we have
|
| 274 |
+
|
| 275 |
+
$$
|
| 276 |
+
\mathbb { E } \left[ \mathcal { L } \big ( \mathsf { A } _ { \mathsf { P h a s e d E R M } } ( S ) ; P _ { 0 } \big ) \right] - \operatorname* { m i n } _ { \theta ^ { \prime } \in \Theta } \mathcal { L } ( \theta ^ { \prime } ; P _ { 0 } ) = \tilde { O } \left( \frac { R \sqrt { G G } } { \sqrt { m n } } + R \widetilde G \frac { \sqrt { d } } { n \sqrt { m } \varepsilon } \right) .
|
| 277 |
+
$$
|
| 278 |
+
|
| 279 |
+
Furthermore, our results still hold in the heterogeneous setting (Assumption $A I$ ) whenever $\Delta \le$ $\mathtt { p o l y } ( d , \frac { 1 } { n } , \frac { 1 } { m } , \frac { 1 } { \varepsilon } )$ ; the risk guarantee being with respect to any user distribution $P _ { u }$ .
|
| 280 |
+
|
| 281 |
+
Theorem 5 (Lower bound for SCO). There exists a distribution $P$ and a loss $\ell$ satisfying Assumptions $A 3$ and A4 such that for any algorithm A satisfying $( \varepsilon , \delta )$ -DP at user-level, we have
|
| 282 |
+
|
| 283 |
+
$$
|
| 284 |
+
\mathbb { E } \left[ \mathcal { L } ( \mathsf { A } ( \mathcal { S } ) ; P ) \right] - \operatorname* { m i n } _ { \theta ^ { \prime } \in \Theta } \mathcal { L } ( \theta ^ { \prime } ; P ) = \Omega \Bigg ( \frac { R G } { \sqrt { m n } } + R \underline { { G } } \frac { \sqrt { d } } { n \sqrt { m } \varepsilon } \Bigg ) .
|
| 285 |
+
$$
|
| 286 |
+
|
| 287 |
+
When $G = \Theta ( \sigma { \sqrt { d } } )$ , the upper bound matches the lower bound up to logarithmic factors. We present the algorithm and proof for Theorem 4 in Section 5.1. Theorem 5 is proved in Section 5.2.
|
| 288 |
+
|
| 289 |
+
# 5.1 Upper bound: minimizing a sequence of regularized ERM problems
|
| 290 |
+
|
| 291 |
+
We now present Algorithm 4, which achieves the upper bound of Theorem 4. It is similar in spirit to Phased ERM [29] and EpochGD [34], in that at each round we minimize a regularized ERM problem with fresh samples and increased regularization, initializing each round from the final iterate of the previous round. This allows us to localize the optimum with exponentially increasing accuracy without blowing up our privacy budget. We solve each round using Algorithm 3 to guarantee privacy and obtain an approximate minimizer. We show the guarantee in Corollary 2 is enough to achieve optimal rates. We provide the proof of Theorem 4 in Appendix $\mathrm { F }$ and present a sketch here.
|
| 292 |
+
|
| 293 |
+
Algorithm 4 APhasedERM: Phased ERM
|
| 294 |
+
|
| 295 |
+
<table><tr><td>parameterσ.</td><td>Require: Private dataset: S = (S1,...,Sn) ∈ (Zm)n : n × m i.i.d samples from P,H-smooth, convex loss function l,convex set Θ C Rd, privacy parameters ε ≤ 1,δ ≤1/n²,sub-Gaussian</td><td></td><td></td><td></td></tr><tr><td>1: SetT=[log2(</td><td>(Gn√mε)1,入=√ GG gd nm</td><td>/R</td><td></td><td></td></tr><tr><td>2:</td><td>fort=1toTdo</td><td>n²mε²</td><td></td><td></td></tr><tr><td>3: 4:</td><td>Setnt =,,xt =4t入</td><td></td><td></td><td></td></tr><tr><td></td><td> Sample St, nt users that have not participated in previous rounds. Using Algorithm 3,compute</td><td></td><td></td><td></td></tr><tr><td></td><td>an approximate minimizer 0t, to the accuracy of Corollary 2, for the objective</td><td>m</td><td></td><td></td></tr><tr><td></td><td>Lλt,t_(0;St)=</td><td>1 MM e(0,z</td><td>t 11-0t-12.</td><td></td></tr><tr><td></td><td></td><td>mnt</td><td>(u) 十 2</td><td></td></tr><tr><td>5: end for</td><td></td><td>uESt j=1</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>6:return</td><td>T</td><td></td><td></td><td></td></tr></table>
|
| 296 |
+
|
| 297 |
+
Proof sketch of Theorem 4. The privacy guarantee comes directly from the privacy guarantee of Algorithm 3 and the fact that $S _ { t }$ are non-overlapping. The proof for utility is similar to the proof of Theorem 4.8 in [29]. In round $t$ of Algorithm 4, we consider the true minimizer $\theta _ { t } ^ { * }$ and the approximate minimizer $\widehat { \theta } _ { t }$ . By stability [14], we can bound the generalization error of $\theta _ { t } ^ { * }$ (see Proposition 5 in Appendix F) and, by Corollary 2, we can bound $\widehat { \mathbb { E } } \| \widehat { \theta } _ { t } - \theta _ { t } ^ { * } \| _ { 2 } ^ { 2 }$ . We finally choose $\{ ( \lambda _ { t } , n _ { t } ) \} _ { t \le T }$ such that the assumptions of Corollary 2 hold and to minimize the final error. □
|
| 298 |
+
|
| 299 |
+
# 5.2 Lower bound: SCO is harder than Gaussian mean estimation
|
| 300 |
+
|
| 301 |
+
First of all, note that it suffices to prove the lower bounds in the homogeneous setting as any level of heterogeneity only makes the problem harder. Theorem 5 holds for $( \varepsilon , \delta )$ -user-level DP—importantly, this is a setting for which lower bounds are generally more challenging (we provide a related lower bound for $\varepsilon$ -user-level DP in Appendix A.2). We present the proof in Appendix F.2 and a sketch here.
|
| 302 |
+
|
| 303 |
+
Proof sketch of Theorem 5. The (constrained) minimax lower bound decomposes into a statistical rate and a privacy rate. The statistical rate is optimal (see, e.g., [44, 2]), thus we focus on the privacy rate. We consider linear losses of the form $\ell ( \theta ; z ) = - \langle \theta , z \rangle$ . We show that optimizing $\mathsf { \bar { L } } ( \theta ; \dot { P } ) = \mathbb { E } _ { P } [ \ell ( \theta ; Z ) ]$ over $\theta \in \Theta$ is harder than the mean estimation task for $P$ . Intuitively, $C ( \theta ; P ) = - \langle \theta , \mathbb { E } Z \rangle$ attains its minimum at $\theta ^ { * } = R \mathbb { E } [ Z ] / \| \mathbb { E } [ Z ] \| _ { 2 }$ and finding $\theta ^ { * }$ provides a good estimate of (the direction of) $\mathbb { E } [ Z ]$ . We make this formal in Proposition 6. Next, for Gaussian mean estimation, we reduce, in Proposition 3, user-level DP to item-level DP with lower variance by having each user contribute their sample average (which is a sufficient statistic). We conclude with the results of [38] (see Proposition 7) by proving in Corollary 6 that estimating the direction of the mean with item-level privacy is hard. □
|
| 304 |
+
|
| 305 |
+
# Acknowledgments
|
| 306 |
+
|
| 307 |
+
The authors would like to thank Hilal Asi and Karan Chadha for comments on an earlier draft as well as Yair Carmon, Peter Kairouz, Gautam Kamath, Sai Praneeth Karimireddy, Thomas Steinke and Sebastian Stich, for useful discussions and pointers to very relevant references.
|
| 308 |
+
|
| 309 |
+
# References
|
| 310 |
+
|
| 311 |
+
[1] J. Acharya, Z. Sun, and H. Zhang. Differentially private Assouad, Fano, and Le Cam. In V. Feldman, K. Ligett, and S. Sabato, editors, Proceedings of the 32nd International Conference on Algorithmic Learning Theory, pages 48–78. PMLR, 16–19 Mar 2021. URL https:// proceedings.mlr.press/v132/acharya21a.html.
|
| 312 |
+
[2] A. Agarwal, P. L. Bartlett, P. Ravikumar, and M. J. Wainwright. Information-theoretic lower bounds on the oracle complexity of convex optimization. IEEE Transactions on Information Theory, 58(5):3235–3249, 2012.
|
| 313 |
+
[3] N. Ailon and B. Chazelle. Approximate nearest neighbors and the fast johnson-lindenstrauss transform. In Proceedings of the thirty-eighth annual ACM symposium on Theory of computing, pages 557–563, 2006.
|
| 314 |
+
[4] K. Amin, A. Kulesza, A. Munoz, and S. Vassilvtiskii. Bounding user contributions: A biasvariance trade-off in differential privacy. In International Conference on Machine Learning, pages 263–271, 2019.
|
| 315 |
+
[5] Apple Privacy Team. Learning with privacy at scale, 2017. Available at https: //machinelearning.apple.com/2017/12/06/learning-with-privacy-at-scale. html.
|
| 316 |
+
[6] S. Augenstein, H. B. McMahan, D. Ramage, S. Ramaswamy, P. Kairouz, M. Chen, R. Mathews, and B. A. y Arcas. Generative models for effective ml on private, decentralized datasets. In International Conference on Learning Representations, 2019.
|
| 317 |
+
[7] R. F. Barber and J. C. Duchi. Privacy and statistical risk: Formalisms and minimax bounds. arXiv:1412.4451 [math.ST], 2014.
|
| 318 |
+
[8] R. Bassily, A. Smith, and A. Thakurta. Private empirical risk minimization: Efficient algorithms and tight error bounds. In 2014 IEEE 55th Annual Symposium on Foundations of Computer Science, pages 464–473. IEEE, 2014.
|
| 319 |
+
[9] R. Bassily, K. Nissim, A. Smith, T. Steinke, U. Stemmer, and J. Ullman. Algorithmic stability for adaptive data analysis. In Proceedings of the forty-eighth annual ACM symposium on Theory of Computing, pages 1046–1059, 2016.
|
| 320 |
+
[10] R. Bassily, V. Feldman, K. Talwar, and A. G. Thakurta. Private stochastic convex optimization with optimal rates. In Advances in Neural Information Processing Systems, pages 11279–11288, 2019.
|
| 321 |
+
[11] R. Bassily, V. Feldman, C. Guzman, and K. Talwar. Stability of stochastic gradient descent on ´ nonsmooth convex losses. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 4381–4391. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper/2020/ file/2e2c4bf7ceaa4712a72dd5ee136dc9a8-Paper.pdf.
|
| 322 |
+
[12] S. Ben-David, J. Blitzer, K. Crammer, and F. Pereira. Analysis of representations for domain adaptation. Advances in Neural Information Processing Systems 20, 2007.
|
| 323 |
+
[13] S. Ben-David, T. Lu, T. Luu, and D. Pal. Impossibility theorems for domain adaptation. In ´ Proceedings of the 13th International Conference on Artificial Intelligence and Statistics, pages 129–136, 2010.
|
| 324 |
+
[14] O. Bousquet and A. Elisseeff. Stability and generalization. Journal of machine learning research, 2(Mar):499–526, 2002.
|
| 325 |
+
[15] M. Braverman, A. Garg, T. Ma, H. L. Nguyen, and D. P. Woodruff. Communication lower bounds for statistical estimation problems via a distributed data processing inequality. In Proceedings of the Forty-Eigth Annual ACM Symposium on the Theory of Computing, 2016. URL https://arxiv.org/abs/1506.07216.
|
| 326 |
+
[16] S. Bubeck. Convex optimization: Algorithms and complexity. arXiv preprint arXiv:1405.4980, 2014.
|
| 327 |
+
[17] M. Bun and T. Steinke. Average-case averages: Private algorithms for smooth sensitivity and mean estimation. In Advances in Neural Information Processing Systems, pages 181–191, 2019.
|
| 328 |
+
[18] T. T. Cai, Y. Wang, and L. Zhang. The cost of privacy: Optimal rates of convergence for parameter estimation with differential privacy. arXiv preprint arXiv:1902.04495, 2019.
|
| 329 |
+
[19] K. Chaudhuri, C. Monteleoni, and A. D. Sarwate. Differentially private empirical risk minimization. Journal of Machine Learning Research, 12(Mar):1069–1109, 2011.
|
| 330 |
+
[20] D. Davis and D. Drusvyatskiy. Stochastic model-based minimization of weakly convex functions. SIAM Journal on Optimization, 29(1):207–239, 2019.
|
| 331 |
+
[21] B. Ding, J. Kulkarni, and S. Yekhanin. Collecting telemetry data privately. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 30, pages 3571–3580, 2017.
|
| 332 |
+
[22] C. Dwork, F. McSherry, K. Nissim, and A. Smith. Calibrating noise to sensitivity in private data analysis. In Proceedings of the Third Theory of Cryptography Conference, pages 265–284, 2006.
|
| 333 |
+
[23] C. Dwork, G. N. Rothblum, and S. Vadhan. Boosting and differential privacy. In 2010 IEEE 51st Annual Symposium on Foundations of Computer Science, pages 51–60. IEEE, 2010.
|
| 334 |
+
[24] C. Dwork, A. Roth, et al. The algorithmic foundations of differential privacy. 2014.
|
| 335 |
+
[25] C. Dwork, V. Feldman, M. Hardt, T. Pitassi, O. Reingold, and A. L. Roth. Preserving statistical validity in adaptive data analysis. In Proceedings of the forty-seventh annual ACM symposium on Theory of computing, pages 117–126, 2015.
|
| 336 |
+
[26] A. Epasto, M. Mahdian, J. Mao, V. Mirrokni, and L. Ren. Smoothly bounding user contributions in differential privacy. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 13999–14010. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper/2020/ file/a0dc078ca0d99b5ebb465a9f1cad54ba-Paper.pdf.
|
| 337 |
+
[27] V. Feldman and T. Steinke. Generalization for adaptively-chosen estimators via stable median. In S. Kale and O. Shamir, editors, ICML, volume 65 of Proceedings of Machine Learning Research, pages 728–757, Amsterdam, Netherlands, 07–10 Jul 2017. PMLR.
|
| 338 |
+
[28] V. Feldman and T. Steinke. Calibrating noise to variance in adaptive data analysis. In Conference On Learning Theory, pages 535–544. PMLR, 2018.
|
| 339 |
+
[29] V. Feldman, T. Koren, and K. Talwar. Private stochastic convex optimization: optimal rates in linear time. In Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing, pages 439–449, 2020.
|
| 340 |
+
[30] M. Fredrikson, S. Jha, and T. Ristenpart. Model inversion attacks that exploit confidence information and basic countermeasures. In Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security, pages 1322–1333, New York, NY, USA, 2015. ACM. doi: 10.1145/2810103.2813677. URL http://doi.acm.org/10.1145/2810103.2813677.
|
| 341 |
+
[31] B. Ghazi, R. Kumar, and P. Manurangsi. User-level private learning via correlated sampling. arXiv preprint arXiv:2110.11208, 2021.
|
| 342 |
+
[32] Google. Enabling developers and organizations to use differential privacy, 2019. Available at https://developers.googleblog.com/2019/09/ enabling-developers-and-organizations.html.
|
| 343 |
+
[33] C. Guzman and A. Nemirovski. On lower complexity bounds for large-scale smooth convex ´ optimization. Journal of Complexity, 31(1):1–14, 2015.
|
| 344 |
+
[34] E. Hazan and S. Kale. Beyond the regret minimization barrier: an optimal algorithm for stochastic strongly-convex optimization. In Proceedings of the 24th Annual Conference on Learning Theory, pages 421–436, 2011.
|
| 345 |
+
[35] N. Homer, S. Szelinger, M. Redman, D. Duggan, W. Tembe, J. Muehling, J. V. Pearson, D. A. Stephan, S. F. Nelson, and D. W. Craig. Resolving individuals contributing trace amounts of DNA to highly complex mixtures using high-density SNP genotyping microarrays. PLoS Genetics, 4(8):e1000167, 2008.
|
| 346 |
+
[36] C. Jin, P. Netrapalli, R. Ge, S. M. Kakade, and M. I. Jordan. A short note on concentration inequalities for random vectors with subgaussian norm. arXiv:1902.03736 [math.PR], 2019.
|
| 347 |
+
[37] P. Kairouz, H. B. McMahan, B. Avent, A. Bellet, M. Bennis, A. N. Bhagoji, K. Bonawitz, Z. Charles, G. Cormode, R. Cummings, et al. Advances and open problems in federated learning. Foundations and Trends® in Machine Learning, 14(1–2):1–210, 2021. ISSN 1935-8237. doi: 10.1561/2200000083. URL http://dx.doi.org/10.1561/2200000083.
|
| 348 |
+
[38] G. Kamath, J. Li, V. Singhal, and J. Ullman. Privately learning high-dimensional distributions. In Conference on Learning Theory, pages 1853–1902. PMLR, 2019.
|
| 349 |
+
[39] G. Kamath, V. Singhal, and J. Ullman. Private mean estimation of heavy-tailed distributions. In J. Abernethy and S. Agarwal, editors, Proceedings of Thirty Third Conference on Learning Theory, volume 125 of Proceedings of Machine Learning Research, pages 2204–2235. PMLR, 09–12 Jul 2020.
|
| 350 |
+
[40] V. Karwa and S. Vadhan. Finite sample differentially private confidence intervals. 9th Innovations in Theoretical Computer Science Conference (ITCS 2018), 2018.
|
| 351 |
+
[41] M. Kearns. Efficient noise-tolerant learning from statistical queries. Journal of the Association for Computing Machinery, 45(6):983–1006, 1998.
|
| 352 |
+
[42] D. Kifer, A. Smith, and A. Thakurta. Private convex empirical risk minimization and highdimensional regression. In Conference on Learning Theory, pages 25–1. JMLR Workshop and Conference Proceedings, 2012.
|
| 353 |
+
[43] A. Kulunchakov and J. Mairal. Estimate sequences for stochastic composite optimization: Variance reduction, acceleration, and robustness to noise. Journal of Machine Learning Research, 21(155):1–52, 2020.
|
| 354 |
+
[44] D. Levy and J. C. Duchi. Necessary and sufficient geometries for gradient methods. In Advances in Neural Information Processing Systems 32, 2019. URL https://arxiv.org/abs/1909. 10455.
|
| 355 |
+
[45] J. Liu and K. Talwar. Private selection from private candidates. In Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing, pages 298–309, 2019.
|
| 356 |
+
[46] Y. Liu, A. Theertha Suresh, F. Yu, S. Kumar, and M. Riley. Learning discrete distributions: user vs item-level privacy. In Advances in Neural Information Processing Systems, 2020.
|
| 357 |
+
[47] Y. Mansour, M. Mohri, and A. Rostamizadeh. Domain adaptation: Learning bounds and algorithms. In Proceedings of the Twenty Second Annual Conference on Computational Learning Theory, 2009.
|
| 358 |
+
[48] H. B. McMahan, G. Andrew, U. Erlingsson, S. Chien, I. Mironov, N. Papernot, and P. Kairouz. A general approach to adding differential privacy to iterative training procedures. arXiv preprint arXiv:1812.06210, 2018.
|
| 359 |
+
[49] H. B. McMahan, D. Ramage, K. Talwar, and L. Zhang. Learning differentially private recurrent language models. In International Conference on Learning Representations, 2018.
|
| 360 |
+
[50] S. Mei, Y. Bai, A. Montanari, et al. The landscape of empirical risk for nonconvex losses. The Annals of Statistics, 46(6A):2747–2774, 2018.
|
| 361 |
+
[51] S. Shalev-Shwartz, O. Shamir, N. Srebro, and K. Sridharan. Stochastic convex optimization. In Conference on Learning Theory, 2009.
|
| 362 |
+
[52] R. Shokri and V. Shmatikov. Privacy-preserving deep learning. In Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security, pages 1310–1321, 2015.
|
| 363 |
+
[53] A. Smith. Privacy-preserving statistical estimation with optimal convergence rates. In Proceedings of the forty-third annual ACM symposium on Theory of computing, pages 813–822, 2011.
|
| 364 |
+
[54] A. T. Suresh, F. X. Yu, S. Kumar, and H. B. McMahan. Distributed mean estimation with limited communication. In D. Precup and Y. W. Teh, editors, Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 3329–3337, International Convention Centre, Sydney, Australia, 06–11 Aug 2017. PMLR.
|
| 365 |
+
[55] United States Census Bureau. Statistical safeguards, 2018. Available at https://www.census. gov/about/policies/privacy/statistical_safeguards.html.
|
| 366 |
+
[56] R. Vershynin. High Dimensional Probability: An Introduction with Applications in Data Science. Cambridge University Press, 2019.
|
| 367 |
+
[57] M. J. Wainwright. High-Dimensional Statistics: A Non-Asymptotic Viewpoint. Cambridge University Press, 2019.
|
| 368 |
+
[58] Z. Wang, M. Song, Z. Zhang, Y. Song, Q. Wang, and H. Qi. Beyond inferring class representatives: User-level privacy leakage from federated learning. In IEEE INFOCOM 2019-IEEE Conference on Computer Communications, pages 2512–2520. IEEE, 2019.
|
| 369 |
+
[59] R. J. Wilson, C. Y. Zhang, W. Lam, D. Desfontaines, D. Simmons-Marengo, and B. Gipson. Differentially private SQL with bounded user contribution. Proceedings on Privacy Enhancing Technologies, 2:230–250, 2020.
|
| 370 |
+
[60] B. Woodworth, K. K. Patel, and N. Srebro. Minibatch vs local SGD for heterogeneous distributed learning. In Proceedings of the 37th International Conference on Machine Learning, 2020.
|
| 371 |
+
[61] B. E. Woodworth, J. Wang, A. Smith, B. McMahan, and N. Srebro. Graph oracle models, lower bounds, and gaps for parallel stochastic optimization. In Advances in Neural Information Processing Systems 31, 2018.
|
| 372 |
+
[62] B. Yu. Assouad, Fano, and Le Cam. In Festschrift for Lucien Le Cam, pages 423–435. Springer-Verlag, 1997.
|
| 373 |
+
|
| 374 |
+
[63] Y. Zhang, J. Duchi, M. I. Jordan, and M. J. Wainwright. Information-theoretic lower bounds for distributed statistical estimation with communication constraints. In C. J. C. Burges, L. Bottou, M. Welling, Z. Ghahramani, and K. Q. Weinberger, editors, Advances in Neural Information Processing Systems, volume 26. Curran Associates, Inc., 2013. URL https://proceedings. neurips.cc/paper/2013/file/d6ef5f7fa914c19931a55bb262ec879c-Paper.pdf.
|
parse/train/G1jmxFOtY_/G1jmxFOtY__content_list.json
ADDED
|
@@ -0,0 +1,1531 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Learning with User-Level Privacy ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
292,
|
| 8 |
+
122,
|
| 9 |
+
705,
|
| 10 |
+
147
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Daniel Levy∗,1 Ziteng Sun∗,2 Kareem Amin3 Satyen Kale3 \nAlex Kulesza3 Mehryar Mohri3,4 Ananda Theertha Suresh3 ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
261,
|
| 19 |
+
199,
|
| 20 |
+
738,
|
| 21 |
+
231
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "1Stanford University 2Cornell University 3Google Research 4Courant Institute danilevy@stanford.edu, zs335@cornell.edu, {kamin, satyenkale, kulesza, mohri, theertha}@google.com ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
217,
|
| 30 |
+
242,
|
| 31 |
+
782,
|
| 32 |
+
285
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Abstract ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
462,
|
| 42 |
+
320,
|
| 43 |
+
535,
|
| 44 |
+
337
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "We propose and analyze algorithms to solve a range of learning tasks under userlevel differential privacy constraints. Rather than guaranteeing only the privacy of individual samples, user-level DP protects a user’s entire contribution $m \\geq 1$ samples), providing more stringent but more realistic protection against information leaks. We show that for high-dimensional mean estimation, empirical risk minimization with smooth losses, stochastic convex optimization, and learning hypothesis classes with finite metric entropy, the privacy cost decreases as $O ( 1 / \\bar { \\sqrt { m } } )$ as users provide more samples. In contrast, when increasing the number of users $n$ , the privacy cost decreases at a faster $O ( 1 / n )$ rate. We complement these results with lower bounds showing the minimax optimality of our algorithms for mean estimation and stochastic convex optimization. Our algorithms rely on novel techniques for private mean estimation in arbitrary dimension with error scaling as the concentration radius $\\tau$ of the distribution rather than the entire range. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
353,
|
| 54 |
+
767,
|
| 55 |
+
532
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 Introduction ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
556,
|
| 66 |
+
312,
|
| 67 |
+
574
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Releasing seemingly innocuous functions of a data set can easily compromise the privacy of individuals, whether the functions are simple counts [35] or complex machine learning models like deep neural networks [52, 30]. To protect against such leaks, Dwork et al. proposed the notion of differential privacy (DP). Given some data from $n$ participants in a study, we say that a statistic of the data is differentially private if an attacker who already knows the data of $n - 1$ participants cannot reliably determine from the statistic whether the $n$ -th remaining participant is Alice or Bob. With the recent explosion of publicly available data, progress in machine learning, and widespread public release of machine learning models and other statistical inferences, differential privacy has become an important standard and is widely adopted by both industry and government [32, 5, 21, 55]. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
584,
|
| 77 |
+
825,
|
| 78 |
+
709
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "The standard setting of DP described in [22] assumes that each participant contributes a single data point to the dataset, and preserves privacy by “noising” the output in a way that is commensurate with the maximum contribution of a single example. This is not the situation faced in many applications of machine learning models, where users often contribute multiple samples to the model—for example, when language and image recognition models are trained on the users’ own data, or in federated learning settings [37]. As a result, current techniques either provide privacy guarantees that degrade with a user’s increased participation or naively add a substantial amount of noise, relying on the group property of differential privacy, which significantly harms the performance of the deployed model. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
715,
|
| 88 |
+
825,
|
| 89 |
+
827
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "To remedy this issue, we consider user-level DP, which instead of guaranteeing privacy for individual samples, protects a user’s entire contribution $\\textcircled { m } \\geq 1$ samples). This is a more stringent but more realistic privacy desideratum. To hold, it requires that the output of our algorithm does not significantly change when changing user’s entire contribution—i.e. possibly swapping up to $m$ samples in total. We make this formal in Definition 1. Very recently, for the reasons outlined above, there has been increasing interest in user-level DP for applications such as estimating discrete distributions under user-level privacy constraints [46], PAC learning with user-level privacy [31], and bounding user contributions in ML models [4, 26]. Differentially private SQL with bounded user contributions was proposed in [59]. User-level privacy has been also studied in the context of learning models via federated learning [49, 48, 58, 6]. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
176,
|
| 98 |
+
833,
|
| 99 |
+
825,
|
| 100 |
+
875
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
92,
|
| 110 |
+
825,
|
| 111 |
+
189
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "In this paper, we tackle the problem of learning with user-level privacy in the central model of DP. In particular, we provide algorithms and analyses for the tasks of mean estimation, empirical risk minimization (ERM), stochastic convex optimization (SCO), and learning hypothesis classes with finite metric entropy. Our utility analyses assume that all users draw their samples i.i.d. from related distributions, a setting we refer to as limited heterogeneity. On these tasks, naively applying standard mechanisms, such as Laplace or Gaussian, or using the group property with item-level DP estimators, both yield a privacy error independent of $m$ . We first develop novel private mean estimators in high dimension with statistical and privacy error scaling with the (arbitrary) concentration radius rather than the range, and apply these to the statistical query setting [SQ; 41]. Our algorithms then rely on (privately) answering a sequence of adaptively chosen queries using users’ samples, e.g., gradient queries in stochastic gradient descent algorithms. We show that for these tasks, the additional error√ due to privacy constraints decreases as $\\bar { O } ( 1 / \\sqrt { m } )$ , contrasting with the naive rate—independent of $m$ . Interestingly, increasing $n$ , the number of users, decreases the privacy cost at a faster $O ( 1 / n )$ rate. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
173,
|
| 120 |
+
194,
|
| 121 |
+
826,
|
| 122 |
+
375
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "Importantly, our results imply concrete practical recommendations on sample collection, regardless of the level of heterogeneity. Indeed, increasing $m$ will yield the most value in the i.i.d. setting and will yield no improvement when the users’ distributions are arbitrary. As the real-world will lie somewhere in between, our results exhibit a regime where, for any heterogeneity, it is strictly better to collect more users (increasing $n$ ) than more samples per user (increasing $m$ ). ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
381,
|
| 132 |
+
825,
|
| 133 |
+
450
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "1.1 Our Contributions and Related Work ",
|
| 140 |
+
"text_level": 1,
|
| 141 |
+
"bbox": [
|
| 142 |
+
176,
|
| 143 |
+
459,
|
| 144 |
+
473,
|
| 145 |
+
474
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "We provide a theoretical tool to construct estimators for tasks with user-level privacy constraints and apply it to a range of learning problems. ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
173,
|
| 154 |
+
479,
|
| 155 |
+
823,
|
| 156 |
+
508
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Optimal private mean estimation and uniformly concentrated queries (Section 3) We show that for a random variable in $[ - B , B ]$ concentrated in an unknown interval of radius $\\tau$ (made precise in Definition 2), we can privately estimate its mean with error proportional to $\\tau$ rather than $B$ , as we would obtain using standard private mean estimation techniques such as Laplace mechanism [24]. When data is concentrated in $\\ell _ { \\infty }$ -norm, several papers show that one can achieve an error scaling with $\\tau$ rather than $B$ , either asymptotically [53], for Gaussian mean-estimation [40, 38], for sub-Gaussian symmetric distributions [18, 17] or for distributions with bounded $p$ -th moment [39]. We propose a private mean estimator (Algorithm 2) with error scaling with $\\tau$ that works in arbitrary dimension when data is concentrated in $\\ell _ { 2 }$ -norm (Theorem 2). In Corollary 1, we show it (optimally) solves mean estimation under user-level privacy constraints for random vectors bounded in $\\ell _ { 2 }$ -norm. In Appendix D.6, we show that for uniformly concentrated queries (see Definition 3), sequentially applying Algorithm 2 privately answers $K$ adaptively chosen queries with privacy cost $\\tilde { O } ( \\tau \\sqrt { K } / n \\varepsilon )$ . ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
173,
|
| 165 |
+
513,
|
| 166 |
+
826,
|
| 167 |
+
683
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "Our conclusions relate to the growing literature in adaptive data analysis. While a sequence of work [25, 9, 27, 28] use techniques from differential privacy and their answers are $( \\varepsilon , \\delta )$ -DP with $\\varepsilon = \\Theta ( 1 )$ , our work guarantees privacy for arbitrary $\\varepsilon$ with the additional assumption of uniform concentration. ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
174,
|
| 176 |
+
688,
|
| 177 |
+
825,
|
| 178 |
+
743
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "Empirical risk minimization (Section 4) An influential line of papers studies ERM under itemlevel privacy constraints [19, 42, 8]. Importantly, these papers assume arbitrary data, i.e., not necessarily samples from users’ distributions. The exact analog of ERM in the user-level setting is consequently less interesting as, for $n$ data points $\\{ z _ { 1 } , \\ldots , z _ { n } \\}$ , in the worst case, each user $u \\in [ n ]$ contributes $m$ copies of $z _ { u }$ and the problem reduces to the item-level setting. Instead, we consider the (related) problem of ERM when users contribute points sampled i.i.d. Assuming some regularity (A3 and A4), we develop and analyze algorithms for ERM under user-level DP constraints for convex, strongly-convex, and non-convex losses (Theorem 3). ",
|
| 185 |
+
"bbox": [
|
| 186 |
+
173,
|
| 187 |
+
750,
|
| 188 |
+
825,
|
| 189 |
+
861
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 1
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "Optimal stochastic convex optimization (Section 5) Under item-level DP (or equivalently, userlevel DP with $m = 1$ ), a sequence of work [19, 8, 10, 11, 29] establishes the constrained minimax risk as $\\tilde { \\Theta } ( 1 / \\sqrt { n } + \\sqrt { d } / ( n \\varepsilon ) )$ . In this paper, with the additional assumptions that the losses are individually smooth2 and the gradients are sub-Gaussian random vectors, we prove matching upper√ (Theorem 4) and lower bounds (Theorem 5) of order $\\tilde { \\Theta } ( 1 / \\sqrt { n m } + \\sqrt { d } / ( n \\sqrt { m } \\varepsilon ) )$ in a regime we make precise. We leave closing the gap outside of this regime to future work. ",
|
| 196 |
+
"bbox": [
|
| 197 |
+
174,
|
| 198 |
+
867,
|
| 199 |
+
825,
|
| 200 |
+
912
|
| 201 |
+
],
|
| 202 |
+
"page_idx": 1
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"type": "text",
|
| 206 |
+
"text": "",
|
| 207 |
+
"bbox": [
|
| 208 |
+
174,
|
| 209 |
+
90,
|
| 210 |
+
825,
|
| 211 |
+
136
|
| 212 |
+
],
|
| 213 |
+
"page_idx": 2
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"type": "text",
|
| 217 |
+
"text": "Limit of learning with a fixed number of users (Appendix B) Finally, we resolve a conjecture of [4] and prove that with a fixed number of users, even in the limit $m \\infty$ (i.e., each user has an infinite number of samples), we cannot reach zero error. In particular, we prove that for all the learning tasks we consider, the risk under user-level privacy constraints is at least $\\Omega ( e ^ { - \\varepsilon n } )$ regardless of $m$ . Note that this does not contradict the results above since they require $n = \\Omega ( ( \\log m ) / \\varepsilon )$ . ",
|
| 218 |
+
"bbox": [
|
| 219 |
+
173,
|
| 220 |
+
141,
|
| 221 |
+
825,
|
| 222 |
+
212
|
| 223 |
+
],
|
| 224 |
+
"page_idx": 2
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"type": "text",
|
| 228 |
+
"text": "Finally, we provide results in Appendix A for learning under pure user-level DP for function classes with finite metric entropy. We apply these to SCO with $\\ell _ { \\infty }$ constraints (Remark 1) and achieve (near)-optimal rates. ",
|
| 229 |
+
"bbox": [
|
| 230 |
+
176,
|
| 231 |
+
217,
|
| 232 |
+
823,
|
| 233 |
+
258
|
| 234 |
+
],
|
| 235 |
+
"page_idx": 2
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"type": "text",
|
| 239 |
+
"text": "2 Preliminaries ",
|
| 240 |
+
"text_level": 1,
|
| 241 |
+
"bbox": [
|
| 242 |
+
174,
|
| 243 |
+
273,
|
| 244 |
+
318,
|
| 245 |
+
291
|
| 246 |
+
],
|
| 247 |
+
"page_idx": 2
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"type": "text",
|
| 251 |
+
"text": "Notation. Throughout this work, $d$ denotes the dimension, $n$ the number of users, and $m$ the number of samples per user. Generically, $\\sigma$ will denote the sub-Gaussian parameter, $\\tau$ the concentration radius, $\\nu$ the variance of a random vector and $P$ a data distribution. We denote the optimization variable with $\\theta \\in \\Theta \\subset \\mathbb { R } ^ { d }$ , use $z$ (or $Z$ when random) to denote the data sample supported on a space $\\mathcal { Z }$ , and $\\ell \\colon \\Theta \\times \\mathcal { Z } \\mathbb { R }$ for the loss function. Gradients (denoted $\\nabla$ ) are always taken with respect to the optimization variable $\\theta$ . For a convex set $\\mathcal { C }$ , $\\Pi _ { \\mathcal { C } }$ denotes the euclidean projection on $\\mathcal { C }$ , i.e. $\\begin{array} { r } { \\Pi _ { \\mathcal { C } } ( y ) : = \\operatorname * { a r g m i n } _ { z \\in \\mathcal { C } } \\| y - z \\| _ { 2 } } \\end{array}$ . We use $\\mathsf { A }$ to refer to (possibly random) private mechanisms and $X ^ { n }$ as a shorthand for the dataset $( X _ { 1 } , \\ldots , X _ { n } )$ . For two distributions $P$ and $Q$ , we denote by $\\| \\boldsymbol { P } - \\boldsymbol { Q } \\| _ { \\mathsf { T V } }$ their total variation distance and $D _ { \\mathrm { k l } } \\left( P \\| Q \\right)$ their Kullback-Leibler divergence. For a random vector $X \\sim P$ supported on $\\mathbb { R } ^ { d }$ , we use $\\mathrm { V a r } ( P )$ or $\\operatorname { V a r } ( X )$ to denote $\\mathbb { E } \\left[ \\lVert X - \\mathbb { E } [ X ] \\rVert _ { 2 } ^ { 2 } \\right]$ , which is equal to the trace of the covariance matrix of $X$ . ",
|
| 252 |
+
"bbox": [
|
| 253 |
+
173,
|
| 254 |
+
300,
|
| 255 |
+
826,
|
| 256 |
+
455
|
| 257 |
+
],
|
| 258 |
+
"page_idx": 2
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"type": "text",
|
| 262 |
+
"text": "Next, we consider differential privacy in the most general way, which only requires specifying a dataset space $\\mathbb { S }$ and a distance $\\mathrm { d }$ on $\\mathbb { S }$ . ",
|
| 263 |
+
"bbox": [
|
| 264 |
+
174,
|
| 265 |
+
460,
|
| 266 |
+
823,
|
| 267 |
+
488
|
| 268 |
+
],
|
| 269 |
+
"page_idx": 2
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"type": "text",
|
| 273 |
+
"text": "Definition 1 (Differential Privacy). Let $\\varepsilon , \\delta \\geq 0$ . Let $\\ u : \\mathbb { S } \\to \\Theta$ be a (potentially randomized) mechanism. We say that A is $( \\varepsilon , \\delta )$ - $D P$ with respect to d if for any measurable subset $O \\subset \\Theta$ and all $S , S ^ { \\prime } \\in \\mathbb { S }$ satisfying $\\mathrm { d } ( S , S ^ { \\prime } ) \\stackrel { \\cdot } { = } 1$ , ",
|
| 274 |
+
"bbox": [
|
| 275 |
+
173,
|
| 276 |
+
492,
|
| 277 |
+
825,
|
| 278 |
+
535
|
| 279 |
+
],
|
| 280 |
+
"page_idx": 2
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"type": "equation",
|
| 284 |
+
"img_path": "images/450de04b96eb78f82aa623367aa0cf80a63ea03ccb0aea1c85b535db9c665c31.jpg",
|
| 285 |
+
"text": "$$\n\\mathbb { P } ( \\mathsf { A } ( S ) \\in O ) \\le e ^ { \\varepsilon } \\mathbb { P } ( \\mathsf { A } ( S ^ { \\prime } ) \\in O ) + \\delta .\n$$",
|
| 286 |
+
"text_format": "latex",
|
| 287 |
+
"bbox": [
|
| 288 |
+
370,
|
| 289 |
+
539,
|
| 290 |
+
627,
|
| 291 |
+
556
|
| 292 |
+
],
|
| 293 |
+
"page_idx": 2
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"type": "text",
|
| 297 |
+
"text": "$I f \\delta = 0$ , we refer to this guarantee as pure differential privacy. ",
|
| 298 |
+
"bbox": [
|
| 299 |
+
173,
|
| 300 |
+
560,
|
| 301 |
+
586,
|
| 302 |
+
575
|
| 303 |
+
],
|
| 304 |
+
"page_idx": 2
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"type": "text",
|
| 308 |
+
"text": "For a data space $\\mathcal { Z }$ , choosing $\\mathbb { S } = \\mathcal { Z } ^ { n }$ and $\\begin{array} { r } { \\mathrm { d } ( S , S ^ { \\prime } ) = \\mathrm { d } _ { \\mathsf { H a m } } ( S , S ^ { \\prime } ) = \\sum _ { i = 1 } ^ { n } 1 \\{ z _ { i } \\neq z _ { i } ^ { \\prime } \\} } \\end{array}$ recovers the canonical setting considered in most of the literature—we refer to this as item-level differential privacy. When we wish to guarantee privacy for users rather than individual samples, we instead assume a structured dataset into which each of $n$ users contributes $m > 1$ samples. This corresponds to $\\mathbb { S } = ( \\mathcal { Z } ^ { m } ) ^ { n }$ such that for ${ \\boldsymbol { s } } \\in \\mathbb { S }$ , we have ",
|
| 309 |
+
"bbox": [
|
| 310 |
+
173,
|
| 311 |
+
584,
|
| 312 |
+
825,
|
| 313 |
+
655
|
| 314 |
+
],
|
| 315 |
+
"page_idx": 2
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"type": "equation",
|
| 319 |
+
"img_path": "images/ea458b724dd12507bcea011301af5e9b02a64134093d1d1441c8caf86309d486.jpg",
|
| 320 |
+
"text": "$$\n{ \\mathcal { S } } = ( S _ { 1 } , \\ldots , S _ { n } ) , { \\mathrm { ~ w h e r e ~ } } S _ { u } = \\left\\{ z _ { 1 } ^ { ( u ) } , \\ldots , z _ { m } ^ { ( u ) } \\right\\} { \\mathrm { ~ a n d ~ } } \\mathrm { d } _ { { \\mathfrak { u s e r } } } ( S , S ^ { \\prime } ) : = \\sum _ { u = 1 } ^ { n } 1 \\{ S _ { u } \\neq S _ { u } ^ { \\prime } \\} ,\n$$",
|
| 321 |
+
"text_format": "latex",
|
| 322 |
+
"bbox": [
|
| 323 |
+
205,
|
| 324 |
+
659,
|
| 325 |
+
787,
|
| 326 |
+
700
|
| 327 |
+
],
|
| 328 |
+
"page_idx": 2
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"type": "text",
|
| 332 |
+
"text": "which means that, in this setting, two datasets are neighboring if at most one of the user’s contributions differ. We henceforth refer to this setting as user-level differential privacy. ",
|
| 333 |
+
"bbox": [
|
| 334 |
+
171,
|
| 335 |
+
704,
|
| 336 |
+
823,
|
| 337 |
+
733
|
| 338 |
+
],
|
| 339 |
+
"page_idx": 2
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"type": "text",
|
| 343 |
+
"text": "Distributional assumptions. In the case of user-level privacy with $n$ users each providing $m$ samples, we assume existence of a collection of distributions $\\{ \\bar { P _ { u } } \\} _ { u \\in [ n ] }$ over $\\mathcal { Z }$ . One then observes the following user-level dataset3 ",
|
| 344 |
+
"bbox": [
|
| 345 |
+
173,
|
| 346 |
+
739,
|
| 347 |
+
825,
|
| 348 |
+
784
|
| 349 |
+
],
|
| 350 |
+
"page_idx": 2
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"type": "equation",
|
| 354 |
+
"img_path": "images/d2f6ff7df885e008a512d111b1028f61c1dad67a1647d6e3f1c46da6ded431ec.jpg",
|
| 355 |
+
"text": "$$\n{ \\mathcal { S } } = ( S _ { 1 } , \\ldots , S _ { n } ) { \\mathrm { ~ w h e r e ~ } } S _ { u } \\stackrel { \\mathrm { i i d } } { \\sim } P _ { u } .\n$$",
|
| 356 |
+
"text_format": "latex",
|
| 357 |
+
"bbox": [
|
| 358 |
+
375,
|
| 359 |
+
789,
|
| 360 |
+
620,
|
| 361 |
+
810
|
| 362 |
+
],
|
| 363 |
+
"page_idx": 2
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"type": "text",
|
| 367 |
+
"text": "In this paper, we consider the limited heterogeneity setting, i.e. when the users have related distributions. This setting is more reflective of practice, especially in light of growing interest towards federated learning applications [37, 60]. ",
|
| 368 |
+
"bbox": [
|
| 369 |
+
174,
|
| 370 |
+
90,
|
| 371 |
+
823,
|
| 372 |
+
133
|
| 373 |
+
],
|
| 374 |
+
"page_idx": 3
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"type": "text",
|
| 378 |
+
"text": "Assumption A1 (Limited heterogeneity setting). There exists a distribution $P _ { 0 }$ over $\\mathcal { Z }$ such that all the user distributions are close to $P _ { 0 }$ in total variation distance, i.e. ",
|
| 379 |
+
"bbox": [
|
| 380 |
+
173,
|
| 381 |
+
137,
|
| 382 |
+
825,
|
| 383 |
+
165
|
| 384 |
+
],
|
| 385 |
+
"page_idx": 3
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"type": "equation",
|
| 389 |
+
"img_path": "images/81716f6b4f8e37a8193044adaf5d49987d29a37d8e67bbca13b67bf5e14b9156.jpg",
|
| 390 |
+
"text": "$$\n\\operatorname* { m a x } _ { u \\in [ n ] } \\lVert P _ { u } - P _ { 0 } \\rVert \\mathrm { { r v } } \\leq \\Delta ,\n$$",
|
| 391 |
+
"text_format": "latex",
|
| 392 |
+
"bbox": [
|
| 393 |
+
415,
|
| 394 |
+
171,
|
| 395 |
+
580,
|
| 396 |
+
195
|
| 397 |
+
],
|
| 398 |
+
"page_idx": 3
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"type": "text",
|
| 402 |
+
"text": "where $\\Delta \\geq 0$ quantifies the level of heterogeneity. Note that $\\Delta = 0$ corresponds to assumption $A 2$ . ",
|
| 403 |
+
"bbox": [
|
| 404 |
+
174,
|
| 405 |
+
200,
|
| 406 |
+
816,
|
| 407 |
+
217
|
| 408 |
+
],
|
| 409 |
+
"page_idx": 3
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"type": "text",
|
| 413 |
+
"text": "Note that our TV-based definition is natural in this setting as it is closely related to the notion of discrepancy (or $d _ { A }$ distance) which plays a key role in domain adaption scenarios [47, 12]. Lower bound results have been given in terms of the discrepancy measure (see [13]), which further justify the adoption of this definition in the presence of multiple distributions. ",
|
| 414 |
+
"bbox": [
|
| 415 |
+
173,
|
| 416 |
+
227,
|
| 417 |
+
825,
|
| 418 |
+
284
|
| 419 |
+
],
|
| 420 |
+
"page_idx": 3
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"type": "text",
|
| 424 |
+
"text": "In the case that $\\Delta = 0$ , A1 reduces to the standard homogeneous setting. Many fundamental papers choose this setting when explicating minimax rates under constraints (e.g. in distributed optimization and federated learning [61] or under communication constraints [63, 15]). ",
|
| 425 |
+
"bbox": [
|
| 426 |
+
176,
|
| 427 |
+
289,
|
| 428 |
+
823,
|
| 429 |
+
332
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 3
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "text",
|
| 435 |
+
"text": "Assumption A2 (Homogeneous setting). The distributions of individual users are equal, meaning there exists $P _ { 0 }$ such that for all $u \\in [ n ]$ , $P _ { u } = P _ { 0 }$ . ",
|
| 436 |
+
"bbox": [
|
| 437 |
+
171,
|
| 438 |
+
334,
|
| 439 |
+
823,
|
| 440 |
+
364
|
| 441 |
+
],
|
| 442 |
+
"page_idx": 3
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"type": "text",
|
| 446 |
+
"text": "In this paper, we develop techniques and provide matching upper and lower bounds for solving learning tasks in the homogeneous setting. In Appendix C, we prove that our techniques naturally apply to the heterogeneous setting in a black-box fashion, and for all considered problems provide meaningful guarantees under Assumption A1. Moreover, the algorithm achieves almost optimal rate whenever $\\Delta$ is (polynomially) small. See the detailed statement in Theorem 9. ",
|
| 447 |
+
"bbox": [
|
| 448 |
+
173,
|
| 449 |
+
373,
|
| 450 |
+
825,
|
| 451 |
+
444
|
| 452 |
+
],
|
| 453 |
+
"page_idx": 3
|
| 454 |
+
},
|
| 455 |
+
{
|
| 456 |
+
"type": "text",
|
| 457 |
+
"text": "2.1 ERM and stochastic convex optimization ",
|
| 458 |
+
"text_level": 1,
|
| 459 |
+
"bbox": [
|
| 460 |
+
176,
|
| 461 |
+
453,
|
| 462 |
+
496,
|
| 463 |
+
468
|
| 464 |
+
],
|
| 465 |
+
"page_idx": 3
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"type": "text",
|
| 469 |
+
"text": "Assumptions on the loss. Throughout this work, we assume that the parameter space $\\Theta$ is closed, convex, and satisfies $\\lVert { \\boldsymbol { \\theta } } - { \\boldsymbol { \\vartheta } } \\rVert _ { 2 } \\leq R$ for all $\\theta , \\vartheta \\in \\Theta$ . We also assume that the loss $\\ell \\colon \\Theta \\times \\mathcal { Z } \\mathbb { R }$ is $G$ -Lipschitz w.r.t. the $\\ell _ { 2 } { \\mathrm { - n o r m } } ^ { 4 }$ , meaning that for all $z \\in { \\mathcal { Z } }$ , for all $\\theta \\in \\Theta$ , $\\| \\nabla \\ell ( \\theta ; z ) \\| _ { 2 } \\leq G$ . We further consider the following assumptions. ",
|
| 470 |
+
"bbox": [
|
| 471 |
+
173,
|
| 472 |
+
473,
|
| 473 |
+
826,
|
| 474 |
+
530
|
| 475 |
+
],
|
| 476 |
+
"page_idx": 3
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"type": "text",
|
| 480 |
+
"text": "Assumption A3. The function $\\ell ( \\cdot ; z )$ is $H$ -smooth. In other words, the gradient $\\nabla \\ell ( \\theta ; z )$ is $H$ Lipschitz in the variable $\\theta$ for all $z \\in { \\mathcal { Z } }$ . ",
|
| 481 |
+
"bbox": [
|
| 482 |
+
173,
|
| 483 |
+
531,
|
| 484 |
+
823,
|
| 485 |
+
561
|
| 486 |
+
],
|
| 487 |
+
"page_idx": 3
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "text",
|
| 491 |
+
"text": "Assumption A4. The random vector $\\nabla \\ell ( \\theta ; Z )$ is $\\sigma ^ { 2 }$ -sub-Gaussian for all $\\theta \\in \\Theta$ and $Z \\sim P _ { 0 }$ Equivalently, for all $v \\in \\mathbb { R } ^ { d }$ , $\\langle v , \\nabla \\ell ( \\theta ; Z ) \\rangle$ is a $\\sigma ^ { 2 }$ -sub-Gaussian random variable, i.e., ",
|
| 492 |
+
"bbox": [
|
| 493 |
+
174,
|
| 494 |
+
564,
|
| 495 |
+
823,
|
| 496 |
+
594
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 3
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "equation",
|
| 502 |
+
"img_path": "images/829fdaaec031b2d195d467511e45447e9aa210777c1caaeec97e5c2cd22df903.jpg",
|
| 503 |
+
"text": "$$\n\\begin{array} { r } { \\mathbb { E } \\left[ \\exp ( \\langle v , \\nabla \\ell ( \\theta ; Z ) - \\mathbb { E } [ \\nabla \\ell ( \\theta ; Z ) ] \\rangle ) \\right] \\leq \\exp \\bigl ( \\| v \\| _ { 2 } ^ { 2 } \\sigma ^ { 2 } / 2 \\bigr ) . } \\end{array}\n$$",
|
| 504 |
+
"text_format": "latex",
|
| 505 |
+
"bbox": [
|
| 506 |
+
303,
|
| 507 |
+
599,
|
| 508 |
+
691,
|
| 509 |
+
619
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 3
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "text",
|
| 515 |
+
"text": "In this work, our rates often depend on the sub-Gaussianity and Lipschitz parameters $\\sigma$ and $G$ , and thus we define the shorthands ${ \\widetilde { G } } : = \\sigma { \\sqrt { d } }$ and $\\underline { { G } } : = \\operatorname* { m i n } \\{ G , \\widetilde { G } \\}$ . Intuitively, the $G$ -Lipschitzness assumption bounds the gradient in a ball around 0 (independently of $\\theta$ ), while sub-Gaussianity implies that, for each $\\theta$ , $\\nabla \\ell ( \\theta ; Z )$ likely lies in $\\mathbb { B } _ { 2 } ^ { d } ( \\nabla \\mathcal { L } ( \\theta ; \\bar { P } _ { 0 } ) , \\widetilde { G } )$ . Generically, there is no ordering between $G$ and $\\widetilde { G }$ : for linear loss $\\ell ( \\theta ; z ) = \\langle \\theta , z \\rangle$ , depending on $P _ { 0 }$ , it can hold that $G \\ll \\widetilde G$ (e.g., $P _ { 0 } = \\mathsf { U n i f } \\{ - v , v \\}$ for $v \\in \\mathbb { R } ^ { d }$ ), $\\widetilde G \\ll G$ (e.g., $P _ { 0 }$ is $\\mathsf { N } ( \\mu , \\sigma ^ { 2 } I _ { d } )$ truncated in a ball around $\\mu$ , with $\\| \\mu \\| _ { 2 } \\gg \\sigma { \\sqrt { d } } )$ or $\\boldsymbol { G } \\approx \\boldsymbol { \\widetilde { G } }$ (e.g., $P _ { 0 } = \\mathsf { U n i f } \\{ - 1 , + 1 \\} ^ { d } )$ . ",
|
| 516 |
+
"bbox": [
|
| 517 |
+
173,
|
| 518 |
+
631,
|
| 519 |
+
826,
|
| 520 |
+
744
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 3
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "text",
|
| 526 |
+
"text": "We introduce the tasks we consider in this work, namely empirical risk minimization (ERM) and stochastic convex optimization (SCO). For a collection of samples from $n$ users $\\boldsymbol { S } = ( S _ { 1 } , \\ldots , S _ { n } )$ , where each $S _ { u } = \\{ z _ { 1 } ^ { ( u ) } , \\dots , z _ { m } ^ { ( u ) } \\} \\in \\mathcal { Z } ^ { m }$ , we define the empirical risk objectives ",
|
| 527 |
+
"bbox": [
|
| 528 |
+
173,
|
| 529 |
+
747,
|
| 530 |
+
826,
|
| 531 |
+
795
|
| 532 |
+
],
|
| 533 |
+
"page_idx": 3
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "equation",
|
| 537 |
+
"img_path": "images/8915926112c209511902ba228dc665b6b6472fcf0e2d70c8ea77afcdf139ed15.jpg",
|
| 538 |
+
"text": "$$\n\\mathcal { L } ( \\boldsymbol { \\theta } ; S _ { u } ) : = \\frac { 1 } { m } \\sum _ { i = 1 } ^ { m } \\ell ( \\boldsymbol { \\theta } ; z _ { i } ^ { ( u ) } ) \\ \\mathrm { ~ a n d ~ } \\ \\mathcal { L } ( \\boldsymbol { \\theta } ; S ) : = \\frac { 1 } { n } \\sum _ { u = 1 } ^ { n } \\mathcal { L } ( \\boldsymbol { \\theta } ; S _ { u } ) = \\frac { 1 } { m n } \\sum _ { u = 1 } ^ { n } \\sum _ { i = 1 } ^ { m } \\ell ( \\boldsymbol { \\theta } ; z _ { i } ^ { ( u ) } ) .\n$$",
|
| 539 |
+
"text_format": "latex",
|
| 540 |
+
"bbox": [
|
| 541 |
+
196,
|
| 542 |
+
800,
|
| 543 |
+
781,
|
| 544 |
+
842
|
| 545 |
+
],
|
| 546 |
+
"page_idx": 3
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "text",
|
| 550 |
+
"text": "In the user-level setting we wish to minimize $\\textstyle { \\mathcal { L } } ( \\theta ; S )$ under user-level privacy constraints. Going beyond the empirical risk, we also solve SCO [51], i.e. minimizing a convex population objective ",
|
| 551 |
+
"bbox": [
|
| 552 |
+
174,
|
| 553 |
+
847,
|
| 554 |
+
825,
|
| 555 |
+
876
|
| 556 |
+
],
|
| 557 |
+
"page_idx": 3
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"type": "text",
|
| 561 |
+
"text": "when provided with samples from each users’ distributions. In the user-level setting, for a convex loss $\\ell$ and a convex constraint set $\\Theta$ , we observe $\\begin{array} { r } { \\pmb { \\mathcal { S } } = ( S _ { 1 } , \\dots , S _ { n } ) \\sim \\otimes _ { \\pmb { u } \\in [ n ] } ( P _ { u } ) ^ { m } } \\end{array}$ and wish to ",
|
| 562 |
+
"bbox": [
|
| 563 |
+
171,
|
| 564 |
+
90,
|
| 565 |
+
825,
|
| 566 |
+
121
|
| 567 |
+
],
|
| 568 |
+
"page_idx": 4
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"type": "equation",
|
| 572 |
+
"img_path": "images/7126de2c481b3b937594c58ecddc1345129316b7c9f1aa8ee01f469f485e04cc.jpg",
|
| 573 |
+
"text": "$$\n\\operatorname* { m i n i m i z e } _ { \\theta \\in \\Theta } \\frac { 1 } { n } \\sum _ { u \\in [ n ] } \\mathcal { L } ( \\theta ; P _ { u } ) : = \\frac { 1 } { n } \\sum _ { u \\in [ n ] } \\mathbb { E } _ { P _ { u } } [ \\ell ( \\theta ; Z ) ] .\n$$",
|
| 574 |
+
"text_format": "latex",
|
| 575 |
+
"bbox": [
|
| 576 |
+
325,
|
| 577 |
+
127,
|
| 578 |
+
674,
|
| 579 |
+
167
|
| 580 |
+
],
|
| 581 |
+
"page_idx": 4
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"type": "text",
|
| 585 |
+
"text": "In the homogeneous case (Assumption A2), this reduces to the classic SCO setting: ",
|
| 586 |
+
"bbox": [
|
| 587 |
+
173,
|
| 588 |
+
180,
|
| 589 |
+
720,
|
| 590 |
+
195
|
| 591 |
+
],
|
| 592 |
+
"page_idx": 4
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"type": "equation",
|
| 596 |
+
"img_path": "images/f01cb820ca012a2f779f5e1d0e336a5f0e8a32f8b46b909508e45f2e662c9419.jpg",
|
| 597 |
+
"text": "$$\n\\operatorname* { m i n i m i z e } _ { \\theta \\in \\Theta } \\mathcal { L } ( \\theta ; P _ { 0 } ) : = \\mathbb { E } _ { P _ { 0 } } [ \\ell ( \\theta ; Z ) ] .\n$$",
|
| 598 |
+
"text_format": "latex",
|
| 599 |
+
"bbox": [
|
| 600 |
+
377,
|
| 601 |
+
202,
|
| 602 |
+
620,
|
| 603 |
+
226
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 4
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "text",
|
| 609 |
+
"text": "2.2 Uniform concentration of queries ",
|
| 610 |
+
"text_level": 1,
|
| 611 |
+
"bbox": [
|
| 612 |
+
174,
|
| 613 |
+
239,
|
| 614 |
+
444,
|
| 615 |
+
256
|
| 616 |
+
],
|
| 617 |
+
"page_idx": 4
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"type": "text",
|
| 621 |
+
"text": "Let $\\phi : \\mathcal { Z } \\to \\mathbb { R } ^ { d }$ be a $d$ -dimensional query function. We define concentration of random variables and uniform concentration of multiple queries as follows. ",
|
| 622 |
+
"bbox": [
|
| 623 |
+
171,
|
| 624 |
+
263,
|
| 625 |
+
823,
|
| 626 |
+
291
|
| 627 |
+
],
|
| 628 |
+
"page_idx": 4
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"type": "text",
|
| 632 |
+
"text": "Definition 2. A (random) sample $X ^ { n }$ supported on $[ - B , B ] ^ { d }$ is $( \\tau , \\gamma )$ -concentrated (and we call $\\tau$ the “concentration radius”) if there exists $x _ { 0 } \\in [ - B , B ] ^ { d }$ such that with probability at least $1 - \\gamma ,$ ",
|
| 633 |
+
"bbox": [
|
| 634 |
+
173,
|
| 635 |
+
295,
|
| 636 |
+
823,
|
| 637 |
+
327
|
| 638 |
+
],
|
| 639 |
+
"page_idx": 4
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"type": "equation",
|
| 643 |
+
"img_path": "images/142f78ac580eb155ce4b9b92be310815fed87b21ff47b2e931077900dff14885.jpg",
|
| 644 |
+
"text": "$$\n\\operatorname* { m a x } _ { i \\in [ n ] } \\lVert X _ { i } - x _ { 0 } \\rVert _ { 2 } \\leq \\tau .\n$$",
|
| 645 |
+
"text_format": "latex",
|
| 646 |
+
"bbox": [
|
| 647 |
+
423,
|
| 648 |
+
333,
|
| 649 |
+
571,
|
| 650 |
+
358
|
| 651 |
+
],
|
| 652 |
+
"page_idx": 4
|
| 653 |
+
},
|
| 654 |
+
{
|
| 655 |
+
"type": "text",
|
| 656 |
+
"text": "Definition 3 (Uniform concentration of vector queries). Let $\\mathcal { Q } _ { B } ^ { d } = \\{ \\phi \\colon \\mathcal { Z } [ - B , B ] ^ { d } \\}$ be $a$ family of queries with bounded range. For $Z ^ { n } = ( Z _ { 1 } , \\ldots , Z _ { n } ) \\stackrel { \\mathrm { i i d } } { \\sim } P$ , we say that $( Z ^ { n } , \\mathcal { Q } _ { B } ^ { d } )$ is $( \\tau , \\gamma )$ -uniformly-concentrated if with probability at least $1 - \\gamma$ , we have ",
|
| 657 |
+
"bbox": [
|
| 658 |
+
173,
|
| 659 |
+
366,
|
| 660 |
+
826,
|
| 661 |
+
415
|
| 662 |
+
],
|
| 663 |
+
"page_idx": 4
|
| 664 |
+
},
|
| 665 |
+
{
|
| 666 |
+
"type": "equation",
|
| 667 |
+
"img_path": "images/11673f14f1c2e10bf698ada845a587011732c8c9e0007de053757e2c21869761.jpg",
|
| 668 |
+
"text": "$$\n\\operatorname* { m a x } _ { i \\in [ n ] } \\operatorname* { s u p } _ { \\phi \\in \\mathcal { Q } _ { B } ^ { d } } \\Big \\| \\phi ( Z _ { i } ) - \\mathbb { E } _ { Z \\sim P } [ \\phi ( Z ) ] \\Big \\| _ { 2 } \\leq \\tau .\n$$",
|
| 669 |
+
"text_format": "latex",
|
| 670 |
+
"bbox": [
|
| 671 |
+
356,
|
| 672 |
+
421,
|
| 673 |
+
638,
|
| 674 |
+
455
|
| 675 |
+
],
|
| 676 |
+
"page_idx": 4
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"type": "text",
|
| 680 |
+
"text": "In this work, we will often consider $\\sigma ^ { 2 }$ -sub-Gaussian random variables (or vectors), which are concentrated according to Definition 2. For example, if $X ^ { n }$ is drawn i.i.d. from a $\\sigma ^ { 2 }$ -sub-Gaussian random vector supported on $[ - B , B ] ^ { d }$ , then it is $( \\sigma \\sqrt { d \\log ( 2 n / \\gamma ) } , \\gamma )$ -concentrated around its mean (see, e.g., [56]). Finally, we define a distance between random variables (and estimators). ",
|
| 681 |
+
"bbox": [
|
| 682 |
+
173,
|
| 683 |
+
469,
|
| 684 |
+
825,
|
| 685 |
+
530
|
| 686 |
+
],
|
| 687 |
+
"page_idx": 4
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"type": "text",
|
| 691 |
+
"text": "Definition 4 ( $\\beta$ -close Random Variables). For any two random variables $X _ { 1 } \\sim P _ { 1 }$ and $X _ { 2 } \\sim P _ { 2 }$ , we say $X _ { 1 }$ and $X _ { 2 }$ are $\\beta$ -close, if $\\| P _ { 1 } - P _ { 2 } \\| _ { \\mathsf { T V } } \\leq \\bar { \\beta }$ . We use the notation $X _ { 1 } \\sim _ { \\beta } X _ { 2 }$ if $X _ { 1 }$ and $X _ { 2 }$ are $\\beta$ -close. ",
|
| 692 |
+
"bbox": [
|
| 693 |
+
173,
|
| 694 |
+
534,
|
| 695 |
+
825,
|
| 696 |
+
575
|
| 697 |
+
],
|
| 698 |
+
"page_idx": 4
|
| 699 |
+
},
|
| 700 |
+
{
|
| 701 |
+
"type": "text",
|
| 702 |
+
"text": "$\\beta$ -closeness is useful as, in many of our results, the private estimator we propose returns a simple unbiased estimate with high probability and is bounded otherwise. Thus, it suffices to do the analysis in the “nice” case and crudely bound the error otherwise. ",
|
| 703 |
+
"bbox": [
|
| 704 |
+
174,
|
| 705 |
+
587,
|
| 706 |
+
825,
|
| 707 |
+
630
|
| 708 |
+
],
|
| 709 |
+
"page_idx": 4
|
| 710 |
+
},
|
| 711 |
+
{
|
| 712 |
+
"type": "text",
|
| 713 |
+
"text": "3 High Dimensional Mean Estimation and Uniformly Concentrated Queries ",
|
| 714 |
+
"text_level": 1,
|
| 715 |
+
"bbox": [
|
| 716 |
+
173,
|
| 717 |
+
643,
|
| 718 |
+
820,
|
| 719 |
+
662
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 4
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "text",
|
| 725 |
+
"text": "In this section, we present a private mean estimator with privacy cost proportional to the concentration radius. Using these techniques, we show that, under uniform concentration, we answer adaptivelychosen queries with privacy cost proportional to the concentration radius instead of the whole range. Our theorems guarantee that the estimator is $\\beta$ -close (with $\\beta$ exponentially small in $n$ ) to a simple unbiased estimator with small noise. We further show how to directly translate these results into bounds on the estimator error, which we demonstrate by providing tight bounds on estimating the mean of $\\ell _ { 2 }$ -bounded random vectors under user-level DP constraints (Corollary 1). ",
|
| 726 |
+
"bbox": [
|
| 727 |
+
173,
|
| 728 |
+
671,
|
| 729 |
+
826,
|
| 730 |
+
770
|
| 731 |
+
],
|
| 732 |
+
"page_idx": 4
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"type": "text",
|
| 736 |
+
"text": "Given i.i.d samples $X ^ { n }$ from a distribution $P$ supported on $\\mathbb { R } ^ { d }$ with mean $\\mu$ , the goal of mean estimation is to design a private estimator that minimizes the $\\mathbb { E } \\left[ \\lVert \\mathsf { A } ( X ^ { n } ) - \\dot { \\mu } \\rVert _ { 2 } ^ { 2 } \\right]$ . We focus on distributions with bounded supprot $[ - B , B ] ^ { d }$ . However, our algorithm also generalize to the case when the mean is guaranteed to be in $[ - B , B ] ^ { d }$ . In the user-level setting (in the homogeneous case), one observes a dataset $s$ sampled as in (2) and wishes to minimize $\\mathbb { E } \\bar { [ \\| \\mathsf { A } ( S ) - \\mathbb { E } P _ { 0 } \\| \\bar { 2 } ] }$ under user-level privacy constraints. We first focus on the scalar case. ",
|
| 737 |
+
"bbox": [
|
| 738 |
+
173,
|
| 739 |
+
775,
|
| 740 |
+
825,
|
| 741 |
+
863
|
| 742 |
+
],
|
| 743 |
+
"page_idx": 4
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"type": "text",
|
| 747 |
+
"text": "Mean estimation in one dimension. The algorithm uses a two-stage procedure, similar in spirit to those of [53], [40], and [39]. In the first stage of this procedure, we use the approximate median estimation in [27], detailed in Algorithm 6 in Appendix D.1, to privately estimate a crude interval ",
|
| 748 |
+
"bbox": [
|
| 749 |
+
174,
|
| 750 |
+
869,
|
| 751 |
+
825,
|
| 752 |
+
912
|
| 753 |
+
],
|
| 754 |
+
"page_idx": 4
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"type": "text",
|
| 758 |
+
"text": "Require: $X ^ { n } : = ( X _ { 1 } , X _ { 2 } , . . . , X _ { n } ) \\in [ - B , B ] ^ { n }$ , τ : concentration radius, privacy parameter $\\varepsilon > 0$ . 1: $[ a , b ] = \\mathbf { P r i v a t e R a n g e } ( X ^ { n } , \\varepsilon / 2 , \\tau , B )$ with $| b - a | = 4 \\tau$ . {Algorithm 6 in Appendix D.1. $\\}$ 2: Sample $\\textstyle \\xi \\sim \\mathrm { L a p } { \\bigl ( } 0 , { \\frac { 8 \\tau } { \\varepsilon n } } { \\bigr ) }$ and return ",
|
| 759 |
+
"bbox": [
|
| 760 |
+
178,
|
| 761 |
+
108,
|
| 762 |
+
821,
|
| 763 |
+
154
|
| 764 |
+
],
|
| 765 |
+
"page_idx": 5
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"type": "equation",
|
| 769 |
+
"img_path": "images/fdc861ce3f9148784eff58878efe514ea6ce441fa25732d71c41fc84ce4dfc9e.jpg",
|
| 770 |
+
"text": "$$\n\\bar { \\mu } = \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } \\Pi _ { [ a , b ] } ( X _ { i } ) + \\xi ,\n$$",
|
| 771 |
+
"text_format": "latex",
|
| 772 |
+
"bbox": [
|
| 773 |
+
423,
|
| 774 |
+
160,
|
| 775 |
+
599,
|
| 776 |
+
202
|
| 777 |
+
],
|
| 778 |
+
"page_idx": 5
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"type": "text",
|
| 782 |
+
"text": "where $\\Pi _ { [ a , b ] } ( x ) = \\operatorname* { m a x } \\{ a , \\operatorname* { m i n } \\{ x , b \\} \\}$ . ",
|
| 783 |
+
"bbox": [
|
| 784 |
+
200,
|
| 785 |
+
207,
|
| 786 |
+
462,
|
| 787 |
+
224
|
| 788 |
+
],
|
| 789 |
+
"page_idx": 5
|
| 790 |
+
},
|
| 791 |
+
{
|
| 792 |
+
"type": "text",
|
| 793 |
+
"text": "in which the means lie, with accuracy $\\Theta ( \\tau )$ . The second stage clips the mean around this interval, reducing the sensitivity from $O ( B )$ to $O ( \\tau )$ , and adds the appropriate Laplace noise. With high probability, we can recover the guarantee of the Laplace mechanism with smaller sensitivity since the samples are concentrated in a radius $\\tau$ . We present the formal guarantees of Algorithm 1 in Theorem 1 and defer its proof to Appendix D.2. ",
|
| 794 |
+
"bbox": [
|
| 795 |
+
173,
|
| 796 |
+
253,
|
| 797 |
+
826,
|
| 798 |
+
324
|
| 799 |
+
],
|
| 800 |
+
"page_idx": 5
|
| 801 |
+
},
|
| 802 |
+
{
|
| 803 |
+
"type": "text",
|
| 804 |
+
"text": "Theorem 1. Let $X ^ { n }$ be a dataset supported on $[ - B , B ]$ . The output of Algorithm 1, denoted by ${ \\mathsf { A } } ( X ^ { n } )$ , is ${ \\varepsilon } { - } D P .$ Furthermore, if $X ^ { n }$ is $( \\tau , \\gamma )$ -concentrated, it holds that ",
|
| 805 |
+
"bbox": [
|
| 806 |
+
171,
|
| 807 |
+
327,
|
| 808 |
+
823,
|
| 809 |
+
357
|
| 810 |
+
],
|
| 811 |
+
"page_idx": 5
|
| 812 |
+
},
|
| 813 |
+
{
|
| 814 |
+
"type": "equation",
|
| 815 |
+
"img_path": "images/185fa986ef5105d249e3ce7070641aeb25285f662d80cfae5b6bf2db89269282.jpg",
|
| 816 |
+
"text": "$$\n\\mathsf { A } ( X ^ { n } ) \\sim _ { \\beta } \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } X _ { i } + L a p \\bigg ( \\frac { 8 \\tau } { n \\varepsilon } \\bigg ) ,\n$$",
|
| 817 |
+
"text_format": "latex",
|
| 818 |
+
"bbox": [
|
| 819 |
+
379,
|
| 820 |
+
362,
|
| 821 |
+
616,
|
| 822 |
+
404
|
| 823 |
+
],
|
| 824 |
+
"page_idx": 5
|
| 825 |
+
},
|
| 826 |
+
{
|
| 827 |
+
"type": "text",
|
| 828 |
+
"text": "where $\\begin{array} { r } { \\beta = \\operatorname* { m i n } \\left\\{ 1 , \\gamma + \\frac { B } { \\tau } \\exp \\left( - \\frac { n \\varepsilon } { 8 } \\right) \\right\\} } \\end{array}$ . Moreover, Algorithm $I$ runs in time ${ \\tilde { O } } ( n + \\log ( B / \\tau ) )$ ",
|
| 829 |
+
"bbox": [
|
| 830 |
+
173,
|
| 831 |
+
409,
|
| 832 |
+
799,
|
| 833 |
+
428
|
| 834 |
+
],
|
| 835 |
+
"page_idx": 5
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"type": "text",
|
| 839 |
+
"text": "Compared to [40, 38, 39], our algorithm runs in time ${ \\tilde { O } } ( n + \\log ( B / \\tau ) )$ instead of ${ \\tilde { O } } ( n + B / \\tau )$ owing to the approximate median estimation algorithm in [27], which is faster when $\\tau \\ll B$ . ",
|
| 840 |
+
"bbox": [
|
| 841 |
+
174,
|
| 842 |
+
438,
|
| 843 |
+
823,
|
| 844 |
+
468
|
| 845 |
+
],
|
| 846 |
+
"page_idx": 5
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"type": "text",
|
| 850 |
+
"text": "Mean estimation in arbitrary dimension. In the general $d$ -dimensional case, if $X ^ { n }$ is concentrated in $\\ell _ { \\infty }$ -norm, one simply applies Algorithm 1 to each dimension. However, when $X ^ { n }$ is concentrated in $\\ell _ { 2 }$ -norm, naively upper bounding $\\ell _ { \\infty }$ -norm by the $\\ell _ { 2 }$ -norm will incur a superfluous $\\sqrt { d }$ factor: if $\\| v \\| _ { 2 } \\leq \\rho$ , each $| v _ { j } |$ is possibly as large as $\\rho$ . To remedy this issue, we use the random rotation trick in [3, 54]. This guarantees that all coordinates have roughly the same range: for √ $v \\in \\mathbb { R } ^ { d }$ , with high probability, $\\| R \\dot { v } \\| _ { \\infty } \\leq \\tilde { O } ( \\| v \\| _ { 2 } / \\sqrt { d } )$ , where $R$ is the random rotation. We present this procedure in Algorithm 2 and its performance in Theorem 2. ",
|
| 851 |
+
"bbox": [
|
| 852 |
+
173,
|
| 853 |
+
473,
|
| 854 |
+
826,
|
| 855 |
+
577
|
| 856 |
+
],
|
| 857 |
+
"page_idx": 5
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"type": "text",
|
| 861 |
+
"text": "Require: $X ^ { n } : = ( X _ { 1 } , X _ { 2 } , . . . , X _ { n } ) , X _ { i } \\ \\in \\ [ - B , B ] ^ { d } , \\tau , \\gamma$ : concentration radius and probability, privacy parameter $\\varepsilon , \\delta > 0$ . \n1: Let $D = { \\mathsf { D i a g } } ( \\omega )$ where $\\omega$ is sampled uniformly from $\\{ \\pm 1 \\} ^ { d }$ . \n2: Set $U = d ^ { - 1 / 2 } \\mathbf { H } D$ , where $\\mathbf { H }$ is a $d$ -dimensional Hadamard matrix. For all $i \\in [ n ]$ , compute $Y _ { i } = U X _ { i }$ . \n3: Let $\\begin{array} { r } { \\varepsilon ^ { \\prime } = \\frac { \\varepsilon } { \\sqrt { 8 d \\log ( 1 / \\delta ) } } , \\tau ^ { \\prime } = 1 0 \\tau \\sqrt { \\frac { \\log ( d n / \\gamma ) } { d } } } \\end{array}$ log(dn/γ)d . For j ∈ [d], compute $\\overset { \\sim } { \\underset { } { \\bar { Y } } } ( j ) = \\mathbf { W i n s o r i z e d M e a n 1 D } \\Big ( \\{ Y _ { i } ( j ) \\} _ { i \\in [ n ] } , \\varepsilon ^ { \\prime } , \\tau ^ { \\prime } , \\sqrt { d } B \\Big ) .$ \n4: return ${ \\bar { X } } = U ^ { - 1 } { \\bar { Y } }$ . ",
|
| 862 |
+
"bbox": [
|
| 863 |
+
176,
|
| 864 |
+
609,
|
| 865 |
+
821,
|
| 866 |
+
742
|
| 867 |
+
],
|
| 868 |
+
"page_idx": 5
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"type": "text",
|
| 872 |
+
"text": "Theorem 2. Let $\\mathsf { A } ( X ^ { n } ) = { \\mathsf { W i n s o r i z e d M e a n H i g h D } } ( X ^ { n } , \\varepsilon , \\delta , \\tau , B , \\gamma )$ be the output of Algorithm 2. $\\mathsf { A } ( X ^ { n } )$ is $( \\varepsilon , \\delta )$ -DP. Furthermore, if $X ^ { n }$ is $( \\tau , \\gamma )$ -concentrated in $\\ell _ { 2 }$ -norm, there exists an estimator $\\mathsf { A } ^ { \\prime } ( X ^ { n } )$ such that ${ \\mathsf { A } } ( X ^ { n } ) \\sim _ { \\beta } { \\mathsf { A } } ^ { \\prime } ( { \\bar { X } } ^ { n } )$ and ",
|
| 873 |
+
"bbox": [
|
| 874 |
+
173,
|
| 875 |
+
755,
|
| 876 |
+
826,
|
| 877 |
+
799
|
| 878 |
+
],
|
| 879 |
+
"page_idx": 5
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"type": "equation",
|
| 883 |
+
"img_path": "images/228209eabd4cce5fc828341c9384e87453c2f4a17ee6f63daa5a251cd16a3d26.jpg",
|
| 884 |
+
"text": "$$\n\\mathbb { E } [ \\mathsf { A } ^ { \\prime } ( X ^ { n } ) | X ^ { n } ] = \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } X _ { i } a n d \\mathrm { ~ } \\mathrm { V a r } ( \\mathsf { A } ^ { \\prime } ( X ^ { n } ) | X ^ { n } ) \\leq c _ { 0 } \\frac { d \\tau ^ { 2 } \\log ( d n / \\alpha ) \\log ( 1 / \\delta ) } { n ^ { 2 } \\varepsilon ^ { 2 } } ,\n$$",
|
| 885 |
+
"text_format": "latex",
|
| 886 |
+
"bbox": [
|
| 887 |
+
223,
|
| 888 |
+
804,
|
| 889 |
+
774,
|
| 890 |
+
845
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 5
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "text",
|
| 896 |
+
"text": "We present the proof of Theorem 2 in Appendix D.3. We are able to transfer both Theorem 1 and Theorem 2 into finite-sample estimation error bounds for various types of concentrated distributions and obtain near optimal guarantees (see Appendix D.5 for an example in mean estimation of subGaussian distributions). The next corollary characterizes the risk of mean estimation for distributions supported on an $\\ell _ { 2 }$ -bounded domain with user-level DP guarantees (see Appendix D.4 for the proof). ",
|
| 897 |
+
"bbox": [
|
| 898 |
+
171,
|
| 899 |
+
883,
|
| 900 |
+
826,
|
| 901 |
+
912
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 5
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "text",
|
| 907 |
+
"text": "",
|
| 908 |
+
"bbox": [
|
| 909 |
+
174,
|
| 910 |
+
90,
|
| 911 |
+
826,
|
| 912 |
+
133
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 6
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "Corollary 1. Assume $A 2$ holds with $P _ { 0 }$ supported on $\\mathbb { B } _ { 2 } ^ { d } ( 0 , B )$ with mean $\\mu$ . Given ${ \\boldsymbol { s } } \\ =$ $( S _ { 1 } , S _ { 2 } , . . . , S _ { n } )$ , $| S _ { u } | = m$ , consisting of m i.i.d. samples from $P _ { u }$ . There exists an $( \\varepsilon , \\delta )$ -userlevel $D P$ algorithm $\\mathsf { A } ( \\boldsymbol { S } )$ such that, if $\\dot { n } \\geq ( c _ { 1 } \\sqrt { d \\log ( 1 / \\delta ) } / \\varepsilon ) \\log ( m ( d n + n ^ { 2 } \\varepsilon ^ { 2 } ) )$ for a numerical constant c1, we have5 ",
|
| 919 |
+
"bbox": [
|
| 920 |
+
173,
|
| 921 |
+
135,
|
| 922 |
+
826,
|
| 923 |
+
195
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 6
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "equation",
|
| 929 |
+
"img_path": "images/a78bff70a427649200f89eafc00b02a2f1bae3d5e3b556f95040e385616bb3df.jpg",
|
| 930 |
+
"text": "$$\n\\mathbb { E } \\left[ \\| \\mathsf { A } ( \\pmb { \\mathscr { S } } ) - \\mu \\| _ { 2 } ^ { 2 } \\right] = \\frac { \\mathrm { V a r } ( P _ { 0 } ) } { m n } + \\tilde { O } \\bigg ( \\frac { d B ^ { 2 } } { m n ^ { 2 } \\varepsilon ^ { 2 } } \\bigg ) .\n$$",
|
| 931 |
+
"text_format": "latex",
|
| 932 |
+
"bbox": [
|
| 933 |
+
341,
|
| 934 |
+
196,
|
| 935 |
+
653,
|
| 936 |
+
231
|
| 937 |
+
],
|
| 938 |
+
"page_idx": 6
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"type": "text",
|
| 942 |
+
"text": "Note that $\\mathrm { V a r } ( P _ { 0 } ) \\le B ^ { 2 }$ for any $P _ { 0 }$ supported on $\\mathbb { B } _ { 2 } ^ { d } ( 0 , B )$ . Replacing ${ \\mathrm { V a r } } ( P _ { 0 } )$ by $B ^ { 2 }$ , the bound 2is minimax optimal up to logarithmic factors. When onsame error bounds holds (up to constant) for estimating $A l$ with for a $\\Delta \\leq \\mathsf { p o l y } ( d , \\frac { 1 } { n } , \\frac { 1 } { m } , \\frac { 1 } { \\varepsilon } )$ , the $\\mathbb { E } _ { Z \\sim P _ { u } } [ Z ]$ $u \\in [ n ]$ ",
|
| 943 |
+
"bbox": [
|
| 944 |
+
174,
|
| 945 |
+
232,
|
| 946 |
+
825,
|
| 947 |
+
276
|
| 948 |
+
],
|
| 949 |
+
"page_idx": 6
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"type": "text",
|
| 953 |
+
"text": "Note that algorithms in [38, 39], which focus on estimating the mean of $d$ -dimensional subGaussian distributions, can also be used to estimate the mean of $\\ell _ { 2 }$ -bounded distributions since bounded random variables are also subGaussian. However, applying these algorithms directly will incur a superfluous $d$ factor in the mean square error. We void this using the random rotation trick in Algorithm 2. ",
|
| 954 |
+
"bbox": [
|
| 955 |
+
174,
|
| 956 |
+
284,
|
| 957 |
+
825,
|
| 958 |
+
340
|
| 959 |
+
],
|
| 960 |
+
"page_idx": 6
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"type": "text",
|
| 964 |
+
"text": "Answering multiple queries. We end this section by noting that, when a family of queries $\\mathcal { Q }$ is uniformly concentrated (as made precise in Definition 3), we answer sequences of √ $K d$ -dimensional, adaptively chosen queries with error scaling as ${ \\tilde { O } } ( { \\sqrt { d K } } \\tau / ( n \\varepsilon ) )$ by applying Algorithm 2 to $\\{ \\phi _ { k } ( Z _ { i } ) \\} _ { i \\in [ n ] }$ with the right $( \\varepsilon _ { 0 } , \\delta _ { 0 } )$ . We make this formal in Theorem 10 in Appendix D.6. ",
|
| 965 |
+
"bbox": [
|
| 966 |
+
173,
|
| 967 |
+
345,
|
| 968 |
+
826,
|
| 969 |
+
406
|
| 970 |
+
],
|
| 971 |
+
"page_idx": 6
|
| 972 |
+
},
|
| 973 |
+
{
|
| 974 |
+
"type": "text",
|
| 975 |
+
"text": "4 Empirical Risk Minimization with User-Level Differential Privacy ",
|
| 976 |
+
"text_level": 1,
|
| 977 |
+
"bbox": [
|
| 978 |
+
173,
|
| 979 |
+
419,
|
| 980 |
+
756,
|
| 981 |
+
438
|
| 982 |
+
],
|
| 983 |
+
"page_idx": 6
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"type": "text",
|
| 987 |
+
"text": "In this section, we present an algorithm to solve the ERM objective of (3) under user-level DP constraints. We apply the results of Section 3 by noting that the SQ framework encompasses stochastic gradient methods. Informally, one can sequentially choose queries $\\phi _ { k } ( z ) = \\nabla \\ell ( \\theta _ { k } ; z )$ and, for a stepsize $\\eta$ , update $\\theta _ { k + 1 } = \\Pi _ { \\Theta } \\big ( \\dot { \\theta } _ { k } - \\eta v _ { k } \\big )$ , where $v _ { k }$ is the answer to the $k$ -th query. For the results to hold, we require a uniform concentration result over the appropriate class of queries. ",
|
| 988 |
+
"bbox": [
|
| 989 |
+
173,
|
| 990 |
+
444,
|
| 991 |
+
825,
|
| 992 |
+
515
|
| 993 |
+
],
|
| 994 |
+
"page_idx": 6
|
| 995 |
+
},
|
| 996 |
+
{
|
| 997 |
+
"type": "text",
|
| 998 |
+
"text": "Uniform concentration of stochastic gradients The class of queries for stochastic gradient methods is $\\mathcal { Q } _ { \\sf e r m } ~ : = ~ \\{ \\nabla \\ell ( \\theta ; \\cdot ) ~ : ~ \\theta ~ \\in ~ \\bar { \\Theta } \\}$ . We prove that when assumptions A3 and A4 hold, $( \\{ \\nabla \\ell ( \\cdot ; S _ { u } ) \\} _ { u \\in [ n ] } , \\mathcal { Q } _ { \\mathrm { e r m } } )$ is $( \\tilde { O } ( \\sigma \\sqrt { d / m } ) , \\alpha )$ -uniformly concentrated. The next proposition is a simplification of the result of [50] under the (stronger) assumption A3 that $\\ell$ is uniformly $H$ -smooth. The proof, which we defer to Appendix E.1, hinges on a covering number argument. ",
|
| 999 |
+
"bbox": [
|
| 1000 |
+
173,
|
| 1001 |
+
520,
|
| 1002 |
+
826,
|
| 1003 |
+
593
|
| 1004 |
+
],
|
| 1005 |
+
"page_idx": 6
|
| 1006 |
+
},
|
| 1007 |
+
{
|
| 1008 |
+
"type": "text",
|
| 1009 |
+
"text": "Proposition 1 (Concentration of random gradients). Let $S _ { u } \\overset { \\mathrm { i i d } } { \\sim } P _ { u }$ $| S _ { u } | = m$ for $u \\in [ n ]$ and $\\alpha \\geq 0$ $1 - \\alpha$ ",
|
| 1010 |
+
"bbox": [
|
| 1011 |
+
173,
|
| 1012 |
+
597,
|
| 1013 |
+
825,
|
| 1014 |
+
627
|
| 1015 |
+
],
|
| 1016 |
+
"page_idx": 6
|
| 1017 |
+
},
|
| 1018 |
+
{
|
| 1019 |
+
"type": "equation",
|
| 1020 |
+
"img_path": "images/bedde13ab22a214a320297697f43f3c40635e91e980994f5539a0f904d120837.jpg",
|
| 1021 |
+
"text": "$$\n\\operatorname* { m a x } _ { u \\in [ n ] } \\operatorname* { s u p } _ { \\theta \\in \\Theta } \\| \\nabla \\mathcal { L } ( \\theta ; S _ { u } ) - \\nabla \\mathcal { L } ( \\theta ; P _ { u } ) \\| _ { 2 } = O \\left( \\sigma \\sqrt { \\frac { d \\log \\left( \\frac { R H m } { d \\sigma } \\right) } { m } + \\frac { \\log \\left( \\frac { n } { \\alpha } \\right) } { m } } \\right) .\n$$",
|
| 1022 |
+
"text_format": "latex",
|
| 1023 |
+
"bbox": [
|
| 1024 |
+
246,
|
| 1025 |
+
628,
|
| 1026 |
+
753,
|
| 1027 |
+
679
|
| 1028 |
+
],
|
| 1029 |
+
"page_idx": 6
|
| 1030 |
+
},
|
| 1031 |
+
{
|
| 1032 |
+
"type": "text",
|
| 1033 |
+
"text": "Stochastic gradient methods We state classical convergence results for stochastic gradient methods for both convex and non-convex losses under smoothness. For a function $F : \\Theta \\to \\mathbb { R }$ , we assume access to a first-order stochastic oracle $\\mathsf { O } _ { F , \\nu ^ { 2 } }$ , i.e., a random mapping such that for all $\\theta \\in \\Theta$ , ",
|
| 1034 |
+
"bbox": [
|
| 1035 |
+
173,
|
| 1036 |
+
685,
|
| 1037 |
+
825,
|
| 1038 |
+
728
|
| 1039 |
+
],
|
| 1040 |
+
"page_idx": 6
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"type": "equation",
|
| 1044 |
+
"img_path": "images/693d2c93eef7449477fd9d66cddf499edb28faaff6ae1f6fec349122b4619c32.jpg",
|
| 1045 |
+
"text": "$$\n\\mathsf { O } _ { F , \\nu ^ { 2 } } ( \\theta ) = \\nabla \\widehat { F } ( \\theta ) \\mathrm { ~ w i t h ~ } \\mathbb { E } \\Big [ \\nabla \\widehat { F } ( \\theta ) \\Big ] = \\nabla F ( \\theta )\n$$",
|
| 1046 |
+
"text_format": "latex",
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
253,
|
| 1049 |
+
731,
|
| 1050 |
+
571,
|
| 1051 |
+
757
|
| 1052 |
+
],
|
| 1053 |
+
"page_idx": 6
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"type": "equation",
|
| 1057 |
+
"img_path": "images/200d07018719d4cabb5fe72366bf6a8b203e173d16552c0c18524c07a8ad2cfc.jpg",
|
| 1058 |
+
"text": "$$\n\\operatorname { V a r } \\left( \\nabla { \\widehat { F } } ( \\theta ) \\right) \\leq \\nu ^ { 2 } .\n$$",
|
| 1059 |
+
"text_format": "latex",
|
| 1060 |
+
"bbox": [
|
| 1061 |
+
606,
|
| 1062 |
+
731,
|
| 1063 |
+
743,
|
| 1064 |
+
757
|
| 1065 |
+
],
|
| 1066 |
+
"page_idx": 6
|
| 1067 |
+
},
|
| 1068 |
+
{
|
| 1069 |
+
"type": "text",
|
| 1070 |
+
"text": "We abstract optimization algorithms in the following way: an algorithm consists of an output set $\\mathcal { O }$ , a sub-routine $\\mathsf { Q u e r y : } \\mathcal { O } \\to \\Theta$ that takes the last output and indicates the next point to query and a sub-routine Update : ${ \\mathcal { O } } \\times \\mathbb { R } ^ { d } \\to { \\mathcal { O } }$ that takes the previous output and a stochastic gradient and returns the next output. After $T$ steps, we call Aggregate : $O ^ { * } \\to \\Theta$ , which takes all the previous outputs and returns the final point. (See Algorithm 7 in Appendix E.2 for how to instantiate generic first-order optimization in this framework.) We detail in Proposition 4 in Appendix E.2 standard convergence results for variations of (projected) stochastic gradient descent (SGD). We introduce this abstraction to forego the details of each specific algorithm and instead focus on the privacy and utility guarantees. ",
|
| 1071 |
+
"bbox": [
|
| 1072 |
+
173,
|
| 1073 |
+
763,
|
| 1074 |
+
826,
|
| 1075 |
+
890
|
| 1076 |
+
],
|
| 1077 |
+
"page_idx": 6
|
| 1078 |
+
},
|
| 1079 |
+
{
|
| 1080 |
+
"type": "text",
|
| 1081 |
+
"text": "Algorithm We recall the ERM setting with user-level DP. We observe $\\boldsymbol { S } = ( S _ { 1 } , \\ldots , S _ { n } )$ with $S _ { u } \\in \\mathcal { Z } ^ { m }$ for $u \\in [ n ]$ and wish to solve the constrained optimization problem with objective in (3). We present our method in Algorithm 3 and provide utility and privacy guarantees in Theorem 3. ",
|
| 1082 |
+
"bbox": [
|
| 1083 |
+
173,
|
| 1084 |
+
90,
|
| 1085 |
+
825,
|
| 1086 |
+
133
|
| 1087 |
+
],
|
| 1088 |
+
"page_idx": 7
|
| 1089 |
+
},
|
| 1090 |
+
{
|
| 1091 |
+
"type": "text",
|
| 1092 |
+
"text": "Algorithm 3 Winsorized First-Order Optimization ",
|
| 1093 |
+
"text_level": 1,
|
| 1094 |
+
"bbox": [
|
| 1095 |
+
176,
|
| 1096 |
+
148,
|
| 1097 |
+
504,
|
| 1098 |
+
162
|
| 1099 |
+
],
|
| 1100 |
+
"page_idx": 7
|
| 1101 |
+
},
|
| 1102 |
+
{
|
| 1103 |
+
"type": "text",
|
| 1104 |
+
"text": "1: Input: Number of iterations $T$ , optimization algorithm $\\{ \\mathcal { O } , \\mathsf { Q u e r y }$ , Update, Aggregate}, privacy \nparameters $( \\varepsilon , \\delta )$ , data $\\boldsymbol { S } = ( S _ { 1 } , \\ldots , S _ { n } )$ , initial output $o _ { 0 }$ , parameter set $\\Theta$ , concentration radius \n2: Set $\\tau$ , probability $\\begin{array} { r } { \\varepsilon ^ { \\prime } = \\frac { \\varepsilon } { 2 \\sqrt { 2 T \\log ( 2 / \\delta ) } } } \\end{array}$ $\\gamma$ . and $\\begin{array} { r } { \\delta ^ { \\prime } = \\frac { \\delta } { 2 T } } \\end{array}$ \n3: for $t = 0 , \\ldots , T - 1$ do \n4: $\\theta _ { t } \\gets \\mathsf { Q u e r y } ( o _ { t } )$ . \n5: For each user $u \\in [ n ]$ , compute \n6: Compute $\\bar { g } _ { t } =$ Winso $\\begin{array} { r l r } & { } & { g _ { t } ^ { ( u ) } = \\nabla \\mathcal { L } ( \\theta _ { t } ; S _ { u } ) = \\displaystyle \\frac { 1 } { m } \\sum _ { j \\in [ m ] } \\nabla \\ell ( \\theta _ { t } ; z _ { j } ^ { ( u ) } ) . } \\\\ & { } & { \\mathrm { ~ } \\mathrm { ~ r i z e d M e a n H i g h } \\mathbf { D } ( \\{ g _ { t } ^ { ( u ) } \\} _ { u \\in [ n ] } , \\varepsilon ^ { \\prime } , \\delta ^ { \\prime } , \\tau , G , \\gamma ) . } \\end{array}$ \n7: $o _ { t + 1 } \\gets \\mathsf { U p d a t e } ( o _ { t } , \\bar { g } _ { t } )$ . \n8: end for \n9: return $\\bar { \\theta } \\gets \\mathsf { A g g r e g a t e } ( o _ { 0 } , \\ldots , o _ { T } )$ . ",
|
| 1105 |
+
"bbox": [
|
| 1106 |
+
178,
|
| 1107 |
+
165,
|
| 1108 |
+
825,
|
| 1109 |
+
361
|
| 1110 |
+
],
|
| 1111 |
+
"page_idx": 7
|
| 1112 |
+
},
|
| 1113 |
+
{
|
| 1114 |
+
"type": "text",
|
| 1115 |
+
"text": "Theorem 3 (Privacy and utility guarantees for ERM). Assume $A 2$ holds and recall that ${ \\widetilde { G } } = \\sigma { \\sqrt { d } } ,$ , assume6 $n = \\tilde { \\Omega } ( \\sqrt { d T } / \\varepsilon )$ and let $\\widehat { \\theta }$ be the output of Algorithm 3. There exists variants of projected $S G D$ (e.g. the ones we present in Proposition 4) such that, with probability greater than $1 - \\gamma$ : ",
|
| 1116 |
+
"bbox": [
|
| 1117 |
+
174,
|
| 1118 |
+
376,
|
| 1119 |
+
826,
|
| 1120 |
+
422
|
| 1121 |
+
],
|
| 1122 |
+
"page_idx": 7
|
| 1123 |
+
},
|
| 1124 |
+
{
|
| 1125 |
+
"type": "text",
|
| 1126 |
+
"text": "(i) If for all $z \\in \\mathcal { Z } , \\ell ( \\cdot ; z )$ is convex, then ",
|
| 1127 |
+
"bbox": [
|
| 1128 |
+
210,
|
| 1129 |
+
428,
|
| 1130 |
+
482,
|
| 1131 |
+
443
|
| 1132 |
+
],
|
| 1133 |
+
"page_idx": 7
|
| 1134 |
+
},
|
| 1135 |
+
{
|
| 1136 |
+
"type": "equation",
|
| 1137 |
+
"img_path": "images/cfec3b2602379c1216e278c2cb51e196dddbccdbf479917f66456d6b8a7e0ec2.jpg",
|
| 1138 |
+
"text": "$$\n\\mathbb { E } \\bigg [ \\mathcal { L } ( \\widehat { \\theta } ; \\mathcal { S } ) - \\operatorname* { i n f } _ { \\theta ^ { \\prime } \\in \\Theta } \\mathcal { L } ( \\theta ^ { \\prime } ; \\mathcal { S } ) \\bigg | \\mathcal { S } \\bigg ] = \\tilde { O } \\Bigg ( \\frac { R ^ { 2 } H } { T } + R \\widetilde { G } \\frac { \\sqrt { d } } { n \\sqrt { m } \\varepsilon } \\Bigg ) .\n$$",
|
| 1139 |
+
"text_format": "latex",
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
321,
|
| 1142 |
+
446,
|
| 1143 |
+
733,
|
| 1144 |
+
489
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 7
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "(ii) If for all $z \\in \\mathcal { Z } , \\ell ( \\cdot ; z )$ is $\\mu$ -strongly-convex, then ",
|
| 1151 |
+
"bbox": [
|
| 1152 |
+
204,
|
| 1153 |
+
494,
|
| 1154 |
+
555,
|
| 1155 |
+
510
|
| 1156 |
+
],
|
| 1157 |
+
"page_idx": 7
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "equation",
|
| 1161 |
+
"img_path": "images/ad3b4f8bd5a65cabc470a74d6771f8345a7b7b5105a4a52ccafe8b18dac15d1e.jpg",
|
| 1162 |
+
"text": "$$\n\\mathbb { E } \\bigg [ \\mathcal { L } ( \\widehat { \\theta } ; \\mathcal { S } ) - \\operatorname* { i n f } _ { \\theta ^ { \\prime } \\in \\Theta } \\mathcal { L } ( \\theta ^ { \\prime } ; \\mathcal { S } ) \\bigg | \\mathcal { S } \\bigg ] = \\widetilde { \\mathcal { O } } \\bigg ( G R \\exp \\big ( - \\frac { \\mu } { H } T \\big ) + \\widetilde { G } ^ { 2 } \\frac { d } { \\mu n ^ { 2 } m \\varepsilon ^ { 2 } } \\bigg ) .\n$$",
|
| 1163 |
+
"text_format": "latex",
|
| 1164 |
+
"bbox": [
|
| 1165 |
+
284,
|
| 1166 |
+
513,
|
| 1167 |
+
769,
|
| 1168 |
+
549
|
| 1169 |
+
],
|
| 1170 |
+
"page_idx": 7
|
| 1171 |
+
},
|
| 1172 |
+
{
|
| 1173 |
+
"type": "text",
|
| 1174 |
+
"text": "(iii) Otherwise, defining the gradient mapping7 $\\begin{array} { r } { { \\sf G } _ { F , \\gamma } ( \\theta ) : = \\frac { 1 } { \\gamma } [ \\theta - \\Pi _ { \\Theta } ( \\theta - \\gamma \\nabla F ( \\theta ) ) ] . } \\end{array}$ , we have ",
|
| 1175 |
+
"bbox": [
|
| 1176 |
+
199,
|
| 1177 |
+
553,
|
| 1178 |
+
823,
|
| 1179 |
+
573
|
| 1180 |
+
],
|
| 1181 |
+
"page_idx": 7
|
| 1182 |
+
},
|
| 1183 |
+
{
|
| 1184 |
+
"type": "equation",
|
| 1185 |
+
"img_path": "images/d0252ad4a0034f04fb9c9906841d082b72bf22ee01890704c0f3b4a32694f098.jpg",
|
| 1186 |
+
"text": "$$\n\\mathbb { E } \\bigg [ \\| \\mathsf { G } _ { \\mathcal { L } ( \\cdot ; S ) , 1 / H } ( \\widehat { \\theta } ) \\| _ { 2 } ^ { 2 } | S \\bigg ] = \\tilde { O } \\bigg ( \\frac { H ^ { 2 } R } { T } + H R \\widetilde G \\frac { \\sqrt { d } } { n \\sqrt { m } \\varepsilon } \\bigg ) .\n$$",
|
| 1187 |
+
"text_format": "latex",
|
| 1188 |
+
"bbox": [
|
| 1189 |
+
338,
|
| 1190 |
+
578,
|
| 1191 |
+
715,
|
| 1192 |
+
621
|
| 1193 |
+
],
|
| 1194 |
+
"page_idx": 7
|
| 1195 |
+
},
|
| 1196 |
+
{
|
| 1197 |
+
"type": "text",
|
| 1198 |
+
"text": "For $\\varepsilon \\le 1 , \\delta > 0$ , Algorithm $^ 3$ instantiated with any first-order gradient algorithm is $( \\varepsilon , \\delta )$ -user-level $D P .$ In the case that only $A l$ holds, the same guarantees hold whenever $\\Delta \\leq \\mathsf { p o l y } ( d , \\frac { 1 } { n } , \\frac { 1 } { m } , \\frac { 1 } { \\varepsilon } )$ . ",
|
| 1199 |
+
"bbox": [
|
| 1200 |
+
173,
|
| 1201 |
+
625,
|
| 1202 |
+
825,
|
| 1203 |
+
654
|
| 1204 |
+
],
|
| 1205 |
+
"page_idx": 7
|
| 1206 |
+
},
|
| 1207 |
+
{
|
| 1208 |
+
"type": "text",
|
| 1209 |
+
"text": "We present the proof in Appendix E.3. For the utility guarantees, the crux of the proof resides in Theorem 10: as well as ensuring small excess loss in expectation, the SQ algorithm produces with high probability a sample from the stochastic gradient oracle $\\operatorname { O } _ { \\mathcal { L } ( \\cdot ; S ) , \\nu ^ { 2 } }$ where $\\begin{array} { r } { \\nu ^ { 2 } = { \\tilde { O } } ( T { \\widetilde G } ^ { 2 } \\frac { d } { n ^ { 2 } m \\varepsilon ^ { 2 } } ) } \\end{array}$ When this happens for all $T$ steps, the analysis of stochastic gradient methods provide the desired regret. The privacy guarantees follow from the strong composition theorem of [23]. ",
|
| 1210 |
+
"bbox": [
|
| 1211 |
+
173,
|
| 1212 |
+
662,
|
| 1213 |
+
826,
|
| 1214 |
+
737
|
| 1215 |
+
],
|
| 1216 |
+
"page_idx": 7
|
| 1217 |
+
},
|
| 1218 |
+
{
|
| 1219 |
+
"type": "text",
|
| 1220 |
+
"text": "Importantly, when the function exhibits (some) strong-convexity (which will be the case for any regularized objective), we are able to localize the optimal parameter—up to the privacy cost—in ${ \\cal \\tilde { O } } ( H / \\mu )$ steps. This will be particularly important in Section 5. ",
|
| 1221 |
+
"bbox": [
|
| 1222 |
+
174,
|
| 1223 |
+
741,
|
| 1224 |
+
825,
|
| 1225 |
+
786
|
| 1226 |
+
],
|
| 1227 |
+
"page_idx": 7
|
| 1228 |
+
},
|
| 1229 |
+
{
|
| 1230 |
+
"type": "text",
|
| 1231 |
+
"text": "Corollary 2 (Localization). Let $\\widehat { \\theta }$ be the output of Algorithm $^ 3$ on the ERM problem of (3). Assume that $\\ell ( \\cdot ; z )$ is $\\mu$ -strongly-convex for all $z \\in { \\mathcal { Z } }$ , that $n = \\tilde { \\Omega } ( \\sqrt { d H / \\mu } )$ and set $T =$ $\\begin{array} { r } { \\frac { H } { \\mu } \\log \\left( n ^ { 2 } m ( \\underline { { G } } / \\widetilde G ^ { 2 } ) \\frac { \\mu R \\varepsilon ^ { 2 } } { d } \\right) } \\end{array}$ and $\\begin{array} { r } { \\gamma = { \\frac { \\sigma ^ { 2 } d ^ { 2 } } { \\mu ^ { 2 } n ^ { 2 } m \\varepsilon ^ { 2 } R ^ { 2 } } } } \\end{array}$ . For $\\theta _ { S } ^ { * } \\in \\mathrm { a r g m i n } _ { \\theta ^ { \\prime } \\in \\Theta } \\mathcal { L } ( \\theta ^ { \\prime } ; S )$ , it holds8 ",
|
| 1232 |
+
"bbox": [
|
| 1233 |
+
173,
|
| 1234 |
+
790,
|
| 1235 |
+
825,
|
| 1236 |
+
847
|
| 1237 |
+
],
|
| 1238 |
+
"page_idx": 7
|
| 1239 |
+
},
|
| 1240 |
+
{
|
| 1241 |
+
"type": "equation",
|
| 1242 |
+
"img_path": "images/8597fa46b29a44cfe93b88214a012fd93ff233a17dad664b911458024e507c80.jpg",
|
| 1243 |
+
"text": "$$\n\\mathbb { E } [ \\| \\widehat { \\theta } - \\theta _ { S } ^ { * } \\| _ { 2 } ^ { 2 } ] = \\tilde { O } \\bigg ( \\frac { \\sigma ^ { 2 } d ^ { 2 } } { \\mu ^ { 2 } n ^ { 2 } m \\varepsilon ^ { 2 } } \\bigg ) .\n$$",
|
| 1244 |
+
"text_format": "latex",
|
| 1245 |
+
"bbox": [
|
| 1246 |
+
387,
|
| 1247 |
+
101,
|
| 1248 |
+
611,
|
| 1249 |
+
136
|
| 1250 |
+
],
|
| 1251 |
+
"page_idx": 8
|
| 1252 |
+
},
|
| 1253 |
+
{
|
| 1254 |
+
"type": "text",
|
| 1255 |
+
"text": "5 Stochastic Convex Optimization with User-level Privacy ",
|
| 1256 |
+
"text_level": 1,
|
| 1257 |
+
"bbox": [
|
| 1258 |
+
173,
|
| 1259 |
+
148,
|
| 1260 |
+
669,
|
| 1261 |
+
167
|
| 1262 |
+
],
|
| 1263 |
+
"page_idx": 8
|
| 1264 |
+
},
|
| 1265 |
+
{
|
| 1266 |
+
"type": "text",
|
| 1267 |
+
"text": "In this section we address the SCO task of (5) under user-level DP constraints. Our approach (which we show in Algorithm 4) solves a sequence of carefully regularized ERM problems, drawing on√ the guarantees of the previous section. Recall that $\\widetilde { G } = \\sigma \\sqrt { d }$ and $\\underline { { G } } = \\operatorname* { m i n } \\{ G , \\widetilde { G } \\}$ , and that $\\ell$ is $H$ -smooth under assumption A3. In this section, we assume that $\\ell$ is convex. We first present our results and state an upper and lower bound for SCO with user-level privacy constraints. ",
|
| 1268 |
+
"bbox": [
|
| 1269 |
+
173,
|
| 1270 |
+
176,
|
| 1271 |
+
826,
|
| 1272 |
+
250
|
| 1273 |
+
],
|
| 1274 |
+
"page_idx": 8
|
| 1275 |
+
},
|
| 1276 |
+
{
|
| 1277 |
+
"type": "text",
|
| 1278 |
+
"text": "Theorem 4 (Phased ERM for SCO). Algorithm $^ { 4 }$ is user-level $( \\varepsilon , \\delta )$ -DP. When $A 2$ holds and $n =$ $\\tilde { \\Omega } ( \\operatorname* { m i n } \\{ \\sqrt [ 3 ] { d ^ { 2 } m H ^ { 2 } R ^ { 2 } / ( G { \\underline { { G } } } \\varepsilon ^ { 4 } ) } , H R \\sqrt { m } / ( \\sigma \\varepsilon ) \\} )$ , or, equivalently, $\\begin{array} { r } { H = \\tilde { O } ( \\sqrt { \\frac { n ^ { 2 } \\varepsilon ^ { 2 } \\sigma ^ { 2 } } { R ^ { 2 } m } + \\frac { G \\bar { a } ^ { 3 } \\varepsilon ^ { 4 } } { d ^ { 2 } R ^ { 2 } m } } ) f o r } \\end{array}$ r all $P$ and $\\ell$ satisfying Assumptions $A 3$ and A4, we have ",
|
| 1279 |
+
"bbox": [
|
| 1280 |
+
173,
|
| 1281 |
+
252,
|
| 1282 |
+
825,
|
| 1283 |
+
306
|
| 1284 |
+
],
|
| 1285 |
+
"page_idx": 8
|
| 1286 |
+
},
|
| 1287 |
+
{
|
| 1288 |
+
"type": "equation",
|
| 1289 |
+
"img_path": "images/859e5cdaac639a2a3be5e9536cfee245a369520343e8708311efd1ecb0a32c7c.jpg",
|
| 1290 |
+
"text": "$$\n\\mathbb { E } \\left[ \\mathcal { L } \\big ( \\mathsf { A } _ { \\mathsf { P h a s e d E R M } } ( S ) ; P _ { 0 } \\big ) \\right] - \\operatorname* { m i n } _ { \\theta ^ { \\prime } \\in \\Theta } \\mathcal { L } ( \\theta ^ { \\prime } ; P _ { 0 } ) = \\tilde { O } \\left( \\frac { R \\sqrt { G G } } { \\sqrt { m n } } + R \\widetilde G \\frac { \\sqrt { d } } { n \\sqrt { m } \\varepsilon } \\right) .\n$$",
|
| 1291 |
+
"text_format": "latex",
|
| 1292 |
+
"bbox": [
|
| 1293 |
+
246,
|
| 1294 |
+
305,
|
| 1295 |
+
748,
|
| 1296 |
+
347
|
| 1297 |
+
],
|
| 1298 |
+
"page_idx": 8
|
| 1299 |
+
},
|
| 1300 |
+
{
|
| 1301 |
+
"type": "text",
|
| 1302 |
+
"text": "Furthermore, our results still hold in the heterogeneous setting (Assumption $A I$ ) whenever $\\Delta \\le$ $\\mathtt { p o l y } ( d , \\frac { 1 } { n } , \\frac { 1 } { m } , \\frac { 1 } { \\varepsilon } )$ ; the risk guarantee being with respect to any user distribution $P _ { u }$ . ",
|
| 1303 |
+
"bbox": [
|
| 1304 |
+
169,
|
| 1305 |
+
353,
|
| 1306 |
+
823,
|
| 1307 |
+
382
|
| 1308 |
+
],
|
| 1309 |
+
"page_idx": 8
|
| 1310 |
+
},
|
| 1311 |
+
{
|
| 1312 |
+
"type": "text",
|
| 1313 |
+
"text": "Theorem 5 (Lower bound for SCO). There exists a distribution $P$ and a loss $\\ell$ satisfying Assumptions $A 3$ and A4 such that for any algorithm A satisfying $( \\varepsilon , \\delta )$ -DP at user-level, we have ",
|
| 1314 |
+
"bbox": [
|
| 1315 |
+
171,
|
| 1316 |
+
390,
|
| 1317 |
+
826,
|
| 1318 |
+
420
|
| 1319 |
+
],
|
| 1320 |
+
"page_idx": 8
|
| 1321 |
+
},
|
| 1322 |
+
{
|
| 1323 |
+
"type": "equation",
|
| 1324 |
+
"img_path": "images/7e2c58edf7fcc1e842b57082b13acb7382469d8b7f8d0f39a8298654ec62e660.jpg",
|
| 1325 |
+
"text": "$$\n\\mathbb { E } \\left[ \\mathcal { L } ( \\mathsf { A } ( \\mathcal { S } ) ; P ) \\right] - \\operatorname* { m i n } _ { \\theta ^ { \\prime } \\in \\Theta } \\mathcal { L } ( \\theta ^ { \\prime } ; P ) = \\Omega \\Bigg ( \\frac { R G } { \\sqrt { m n } } + R \\underline { { G } } \\frac { \\sqrt { d } } { n \\sqrt { m } \\varepsilon } \\Bigg ) .\n$$",
|
| 1326 |
+
"text_format": "latex",
|
| 1327 |
+
"bbox": [
|
| 1328 |
+
290,
|
| 1329 |
+
426,
|
| 1330 |
+
705,
|
| 1331 |
+
468
|
| 1332 |
+
],
|
| 1333 |
+
"page_idx": 8
|
| 1334 |
+
},
|
| 1335 |
+
{
|
| 1336 |
+
"type": "text",
|
| 1337 |
+
"text": "When $G = \\Theta ( \\sigma { \\sqrt { d } } )$ , the upper bound matches the lower bound up to logarithmic factors. We present the algorithm and proof for Theorem 4 in Section 5.1. Theorem 5 is proved in Section 5.2. ",
|
| 1338 |
+
"bbox": [
|
| 1339 |
+
173,
|
| 1340 |
+
483,
|
| 1341 |
+
825,
|
| 1342 |
+
513
|
| 1343 |
+
],
|
| 1344 |
+
"page_idx": 8
|
| 1345 |
+
},
|
| 1346 |
+
{
|
| 1347 |
+
"type": "text",
|
| 1348 |
+
"text": "5.1 Upper bound: minimizing a sequence of regularized ERM problems ",
|
| 1349 |
+
"text_level": 1,
|
| 1350 |
+
"bbox": [
|
| 1351 |
+
173,
|
| 1352 |
+
521,
|
| 1353 |
+
689,
|
| 1354 |
+
537
|
| 1355 |
+
],
|
| 1356 |
+
"page_idx": 8
|
| 1357 |
+
},
|
| 1358 |
+
{
|
| 1359 |
+
"type": "text",
|
| 1360 |
+
"text": "We now present Algorithm 4, which achieves the upper bound of Theorem 4. It is similar in spirit to Phased ERM [29] and EpochGD [34], in that at each round we minimize a regularized ERM problem with fresh samples and increased regularization, initializing each round from the final iterate of the previous round. This allows us to localize the optimum with exponentially increasing accuracy without blowing up our privacy budget. We solve each round using Algorithm 3 to guarantee privacy and obtain an approximate minimizer. We show the guarantee in Corollary 2 is enough to achieve optimal rates. We provide the proof of Theorem 4 in Appendix $\\mathrm { F }$ and present a sketch here. ",
|
| 1361 |
+
"bbox": [
|
| 1362 |
+
173,
|
| 1363 |
+
542,
|
| 1364 |
+
826,
|
| 1365 |
+
641
|
| 1366 |
+
],
|
| 1367 |
+
"page_idx": 8
|
| 1368 |
+
},
|
| 1369 |
+
{
|
| 1370 |
+
"type": "table",
|
| 1371 |
+
"img_path": "images/dcb435fff179ac940622bfcce4a73a45db67bebc8692c04b18d082f14c6a9bcc.jpg",
|
| 1372 |
+
"table_caption": [
|
| 1373 |
+
"Algorithm 4 APhasedERM: Phased ERM "
|
| 1374 |
+
],
|
| 1375 |
+
"table_footnote": [],
|
| 1376 |
+
"table_body": "<table><tr><td>parameterσ.</td><td>Require: Private dataset: S = (S1,...,Sn) ∈ (Zm)n : n × m i.i.d samples from P,H-smooth, convex loss function l,convex set Θ C Rd, privacy parameters ε ≤ 1,δ ≤1/n²,sub-Gaussian</td><td></td><td></td><td></td></tr><tr><td>1: SetT=[log2(</td><td>(Gn√mε)1,入=√ GG gd nm</td><td>/R</td><td></td><td></td></tr><tr><td>2:</td><td>fort=1toTdo</td><td>n²mε²</td><td></td><td></td></tr><tr><td>3: 4:</td><td>Setnt =,,xt =4t入</td><td></td><td></td><td></td></tr><tr><td></td><td> Sample St, nt users that have not participated in previous rounds. Using Algorithm 3,compute</td><td></td><td></td><td></td></tr><tr><td></td><td>an approximate minimizer 0t, to the accuracy of Corollary 2, for the objective</td><td>m</td><td></td><td></td></tr><tr><td></td><td>Lλt,t_(0;St)=</td><td>1 MM e(0,z</td><td>t 11-0t-12.</td><td></td></tr><tr><td></td><td></td><td>mnt</td><td>(u) 十 2</td><td></td></tr><tr><td>5: end for</td><td></td><td>uESt j=1</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>6:return</td><td>T</td><td></td><td></td><td></td></tr></table>",
|
| 1377 |
+
"bbox": [
|
| 1378 |
+
176,
|
| 1379 |
+
669,
|
| 1380 |
+
826,
|
| 1381 |
+
858
|
| 1382 |
+
],
|
| 1383 |
+
"page_idx": 8
|
| 1384 |
+
},
|
| 1385 |
+
{
|
| 1386 |
+
"type": "text",
|
| 1387 |
+
"text": "Proof sketch of Theorem 4. The privacy guarantee comes directly from the privacy guarantee of Algorithm 3 and the fact that $S _ { t }$ are non-overlapping. The proof for utility is similar to the proof of Theorem 4.8 in [29]. In round $t$ of Algorithm 4, we consider the true minimizer $\\theta _ { t } ^ { * }$ and the approximate minimizer $\\widehat { \\theta } _ { t }$ . By stability [14], we can bound the generalization error of $\\theta _ { t } ^ { * }$ (see Proposition 5 in Appendix F) and, by Corollary 2, we can bound $\\widehat { \\mathbb { E } } \\| \\widehat { \\theta } _ { t } - \\theta _ { t } ^ { * } \\| _ { 2 } ^ { 2 }$ . We finally choose $\\{ ( \\lambda _ { t } , n _ { t } ) \\} _ { t \\le T }$ such that the assumptions of Corollary 2 hold and to minimize the final error. □ ",
|
| 1388 |
+
"bbox": [
|
| 1389 |
+
173,
|
| 1390 |
+
882,
|
| 1391 |
+
823,
|
| 1392 |
+
912
|
| 1393 |
+
],
|
| 1394 |
+
"page_idx": 8
|
| 1395 |
+
},
|
| 1396 |
+
{
|
| 1397 |
+
"type": "text",
|
| 1398 |
+
"text": "",
|
| 1399 |
+
"bbox": [
|
| 1400 |
+
174,
|
| 1401 |
+
90,
|
| 1402 |
+
825,
|
| 1403 |
+
154
|
| 1404 |
+
],
|
| 1405 |
+
"page_idx": 9
|
| 1406 |
+
},
|
| 1407 |
+
{
|
| 1408 |
+
"type": "text",
|
| 1409 |
+
"text": "5.2 Lower bound: SCO is harder than Gaussian mean estimation ",
|
| 1410 |
+
"text_level": 1,
|
| 1411 |
+
"bbox": [
|
| 1412 |
+
174,
|
| 1413 |
+
161,
|
| 1414 |
+
640,
|
| 1415 |
+
176
|
| 1416 |
+
],
|
| 1417 |
+
"page_idx": 9
|
| 1418 |
+
},
|
| 1419 |
+
{
|
| 1420 |
+
"type": "text",
|
| 1421 |
+
"text": "First of all, note that it suffices to prove the lower bounds in the homogeneous setting as any level of heterogeneity only makes the problem harder. Theorem 5 holds for $( \\varepsilon , \\delta )$ -user-level DP—importantly, this is a setting for which lower bounds are generally more challenging (we provide a related lower bound for $\\varepsilon$ -user-level DP in Appendix A.2). We present the proof in Appendix F.2 and a sketch here. ",
|
| 1422 |
+
"bbox": [
|
| 1423 |
+
174,
|
| 1424 |
+
183,
|
| 1425 |
+
825,
|
| 1426 |
+
238
|
| 1427 |
+
],
|
| 1428 |
+
"page_idx": 9
|
| 1429 |
+
},
|
| 1430 |
+
{
|
| 1431 |
+
"type": "text",
|
| 1432 |
+
"text": "Proof sketch of Theorem 5. The (constrained) minimax lower bound decomposes into a statistical rate and a privacy rate. The statistical rate is optimal (see, e.g., [44, 2]), thus we focus on the privacy rate. We consider linear losses of the form $\\ell ( \\theta ; z ) = - \\langle \\theta , z \\rangle$ . We show that optimizing $\\mathsf { \\bar { L } } ( \\theta ; \\dot { P } ) = \\mathbb { E } _ { P } [ \\ell ( \\theta ; Z ) ]$ over $\\theta \\in \\Theta$ is harder than the mean estimation task for $P$ . Intuitively, $C ( \\theta ; P ) = - \\langle \\theta , \\mathbb { E } Z \\rangle$ attains its minimum at $\\theta ^ { * } = R \\mathbb { E } [ Z ] / \\| \\mathbb { E } [ Z ] \\| _ { 2 }$ and finding $\\theta ^ { * }$ provides a good estimate of (the direction of) $\\mathbb { E } [ Z ]$ . We make this formal in Proposition 6. Next, for Gaussian mean estimation, we reduce, in Proposition 3, user-level DP to item-level DP with lower variance by having each user contribute their sample average (which is a sufficient statistic). We conclude with the results of [38] (see Proposition 7) by proving in Corollary 6 that estimating the direction of the mean with item-level privacy is hard. □ ",
|
| 1433 |
+
"bbox": [
|
| 1434 |
+
173,
|
| 1435 |
+
253,
|
| 1436 |
+
825,
|
| 1437 |
+
392
|
| 1438 |
+
],
|
| 1439 |
+
"page_idx": 9
|
| 1440 |
+
},
|
| 1441 |
+
{
|
| 1442 |
+
"type": "text",
|
| 1443 |
+
"text": "Acknowledgments ",
|
| 1444 |
+
"text_level": 1,
|
| 1445 |
+
"bbox": [
|
| 1446 |
+
176,
|
| 1447 |
+
406,
|
| 1448 |
+
303,
|
| 1449 |
+
421
|
| 1450 |
+
],
|
| 1451 |
+
"page_idx": 9
|
| 1452 |
+
},
|
| 1453 |
+
{
|
| 1454 |
+
"type": "text",
|
| 1455 |
+
"text": "The authors would like to thank Hilal Asi and Karan Chadha for comments on an earlier draft as well as Yair Carmon, Peter Kairouz, Gautam Kamath, Sai Praneeth Karimireddy, Thomas Steinke and Sebastian Stich, for useful discussions and pointers to very relevant references. ",
|
| 1456 |
+
"bbox": [
|
| 1457 |
+
176,
|
| 1458 |
+
426,
|
| 1459 |
+
823,
|
| 1460 |
+
469
|
| 1461 |
+
],
|
| 1462 |
+
"page_idx": 9
|
| 1463 |
+
},
|
| 1464 |
+
{
|
| 1465 |
+
"type": "text",
|
| 1466 |
+
"text": "References ",
|
| 1467 |
+
"text_level": 1,
|
| 1468 |
+
"bbox": [
|
| 1469 |
+
174,
|
| 1470 |
+
484,
|
| 1471 |
+
266,
|
| 1472 |
+
501
|
| 1473 |
+
],
|
| 1474 |
+
"page_idx": 9
|
| 1475 |
+
},
|
| 1476 |
+
{
|
| 1477 |
+
"type": "text",
|
| 1478 |
+
"text": "[1] J. Acharya, Z. Sun, and H. Zhang. Differentially private Assouad, Fano, and Le Cam. In V. Feldman, K. Ligett, and S. Sabato, editors, Proceedings of the 32nd International Conference on Algorithmic Learning Theory, pages 48–78. PMLR, 16–19 Mar 2021. URL https:// proceedings.mlr.press/v132/acharya21a.html. \n[2] A. Agarwal, P. L. Bartlett, P. Ravikumar, and M. J. Wainwright. Information-theoretic lower bounds on the oracle complexity of convex optimization. IEEE Transactions on Information Theory, 58(5):3235–3249, 2012. \n[3] N. Ailon and B. Chazelle. Approximate nearest neighbors and the fast johnson-lindenstrauss transform. In Proceedings of the thirty-eighth annual ACM symposium on Theory of computing, pages 557–563, 2006. \n[4] K. Amin, A. Kulesza, A. Munoz, and S. Vassilvtiskii. Bounding user contributions: A biasvariance trade-off in differential privacy. In International Conference on Machine Learning, pages 263–271, 2019. \n[5] Apple Privacy Team. Learning with privacy at scale, 2017. Available at https: //machinelearning.apple.com/2017/12/06/learning-with-privacy-at-scale. html. \n[6] S. Augenstein, H. B. McMahan, D. Ramage, S. Ramaswamy, P. Kairouz, M. Chen, R. Mathews, and B. A. y Arcas. Generative models for effective ml on private, decentralized datasets. In International Conference on Learning Representations, 2019. \n[7] R. F. Barber and J. C. Duchi. Privacy and statistical risk: Formalisms and minimax bounds. arXiv:1412.4451 [math.ST], 2014. \n[8] R. Bassily, A. Smith, and A. Thakurta. Private empirical risk minimization: Efficient algorithms and tight error bounds. In 2014 IEEE 55th Annual Symposium on Foundations of Computer Science, pages 464–473. IEEE, 2014. \n[9] R. Bassily, K. Nissim, A. Smith, T. Steinke, U. Stemmer, and J. Ullman. Algorithmic stability for adaptive data analysis. In Proceedings of the forty-eighth annual ACM symposium on Theory of Computing, pages 1046–1059, 2016. \n[10] R. Bassily, V. Feldman, K. Talwar, and A. G. Thakurta. Private stochastic convex optimization with optimal rates. In Advances in Neural Information Processing Systems, pages 11279–11288, 2019. \n[11] R. Bassily, V. Feldman, C. Guzman, and K. Talwar. Stability of stochastic gradient descent on ´ nonsmooth convex losses. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 4381–4391. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper/2020/ file/2e2c4bf7ceaa4712a72dd5ee136dc9a8-Paper.pdf. \n[12] S. Ben-David, J. Blitzer, K. Crammer, and F. Pereira. Analysis of representations for domain adaptation. Advances in Neural Information Processing Systems 20, 2007. \n[13] S. Ben-David, T. Lu, T. Luu, and D. Pal. Impossibility theorems for domain adaptation. In ´ Proceedings of the 13th International Conference on Artificial Intelligence and Statistics, pages 129–136, 2010. \n[14] O. Bousquet and A. Elisseeff. Stability and generalization. Journal of machine learning research, 2(Mar):499–526, 2002. \n[15] M. Braverman, A. Garg, T. Ma, H. L. Nguyen, and D. P. Woodruff. Communication lower bounds for statistical estimation problems via a distributed data processing inequality. In Proceedings of the Forty-Eigth Annual ACM Symposium on the Theory of Computing, 2016. URL https://arxiv.org/abs/1506.07216. \n[16] S. Bubeck. Convex optimization: Algorithms and complexity. arXiv preprint arXiv:1405.4980, 2014. \n[17] M. Bun and T. Steinke. Average-case averages: Private algorithms for smooth sensitivity and mean estimation. In Advances in Neural Information Processing Systems, pages 181–191, 2019. \n[18] T. T. Cai, Y. Wang, and L. Zhang. The cost of privacy: Optimal rates of convergence for parameter estimation with differential privacy. arXiv preprint arXiv:1902.04495, 2019. \n[19] K. Chaudhuri, C. Monteleoni, and A. D. Sarwate. Differentially private empirical risk minimization. Journal of Machine Learning Research, 12(Mar):1069–1109, 2011. \n[20] D. Davis and D. Drusvyatskiy. Stochastic model-based minimization of weakly convex functions. SIAM Journal on Optimization, 29(1):207–239, 2019. \n[21] B. Ding, J. Kulkarni, and S. Yekhanin. Collecting telemetry data privately. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 30, pages 3571–3580, 2017. \n[22] C. Dwork, F. McSherry, K. Nissim, and A. Smith. Calibrating noise to sensitivity in private data analysis. In Proceedings of the Third Theory of Cryptography Conference, pages 265–284, 2006. \n[23] C. Dwork, G. N. Rothblum, and S. Vadhan. Boosting and differential privacy. In 2010 IEEE 51st Annual Symposium on Foundations of Computer Science, pages 51–60. IEEE, 2010. \n[24] C. Dwork, A. Roth, et al. The algorithmic foundations of differential privacy. 2014. \n[25] C. Dwork, V. Feldman, M. Hardt, T. Pitassi, O. Reingold, and A. L. Roth. Preserving statistical validity in adaptive data analysis. In Proceedings of the forty-seventh annual ACM symposium on Theory of computing, pages 117–126, 2015. \n[26] A. Epasto, M. Mahdian, J. Mao, V. Mirrokni, and L. Ren. Smoothly bounding user contributions in differential privacy. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 13999–14010. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper/2020/ file/a0dc078ca0d99b5ebb465a9f1cad54ba-Paper.pdf. \n[27] V. Feldman and T. Steinke. Generalization for adaptively-chosen estimators via stable median. In S. Kale and O. Shamir, editors, ICML, volume 65 of Proceedings of Machine Learning Research, pages 728–757, Amsterdam, Netherlands, 07–10 Jul 2017. PMLR. \n[28] V. Feldman and T. Steinke. Calibrating noise to variance in adaptive data analysis. In Conference On Learning Theory, pages 535–544. PMLR, 2018. \n[29] V. Feldman, T. Koren, and K. Talwar. Private stochastic convex optimization: optimal rates in linear time. In Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing, pages 439–449, 2020. \n[30] M. Fredrikson, S. Jha, and T. Ristenpart. Model inversion attacks that exploit confidence information and basic countermeasures. In Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security, pages 1322–1333, New York, NY, USA, 2015. ACM. doi: 10.1145/2810103.2813677. URL http://doi.acm.org/10.1145/2810103.2813677. \n[31] B. Ghazi, R. Kumar, and P. Manurangsi. User-level private learning via correlated sampling. arXiv preprint arXiv:2110.11208, 2021. \n[32] Google. Enabling developers and organizations to use differential privacy, 2019. Available at https://developers.googleblog.com/2019/09/ enabling-developers-and-organizations.html. \n[33] C. Guzman and A. Nemirovski. On lower complexity bounds for large-scale smooth convex ´ optimization. Journal of Complexity, 31(1):1–14, 2015. \n[34] E. Hazan and S. Kale. Beyond the regret minimization barrier: an optimal algorithm for stochastic strongly-convex optimization. In Proceedings of the 24th Annual Conference on Learning Theory, pages 421–436, 2011. \n[35] N. Homer, S. Szelinger, M. Redman, D. Duggan, W. Tembe, J. Muehling, J. V. Pearson, D. A. Stephan, S. F. Nelson, and D. W. Craig. Resolving individuals contributing trace amounts of DNA to highly complex mixtures using high-density SNP genotyping microarrays. PLoS Genetics, 4(8):e1000167, 2008. \n[36] C. Jin, P. Netrapalli, R. Ge, S. M. Kakade, and M. I. Jordan. A short note on concentration inequalities for random vectors with subgaussian norm. arXiv:1902.03736 [math.PR], 2019. \n[37] P. Kairouz, H. B. McMahan, B. Avent, A. Bellet, M. Bennis, A. N. Bhagoji, K. Bonawitz, Z. Charles, G. Cormode, R. Cummings, et al. Advances and open problems in federated learning. Foundations and Trends® in Machine Learning, 14(1–2):1–210, 2021. ISSN 1935-8237. doi: 10.1561/2200000083. URL http://dx.doi.org/10.1561/2200000083. \n[38] G. Kamath, J. Li, V. Singhal, and J. Ullman. Privately learning high-dimensional distributions. In Conference on Learning Theory, pages 1853–1902. PMLR, 2019. \n[39] G. Kamath, V. Singhal, and J. Ullman. Private mean estimation of heavy-tailed distributions. In J. Abernethy and S. Agarwal, editors, Proceedings of Thirty Third Conference on Learning Theory, volume 125 of Proceedings of Machine Learning Research, pages 2204–2235. PMLR, 09–12 Jul 2020. \n[40] V. Karwa and S. Vadhan. Finite sample differentially private confidence intervals. 9th Innovations in Theoretical Computer Science Conference (ITCS 2018), 2018. \n[41] M. Kearns. Efficient noise-tolerant learning from statistical queries. Journal of the Association for Computing Machinery, 45(6):983–1006, 1998. \n[42] D. Kifer, A. Smith, and A. Thakurta. Private convex empirical risk minimization and highdimensional regression. In Conference on Learning Theory, pages 25–1. JMLR Workshop and Conference Proceedings, 2012. \n[43] A. Kulunchakov and J. Mairal. Estimate sequences for stochastic composite optimization: Variance reduction, acceleration, and robustness to noise. Journal of Machine Learning Research, 21(155):1–52, 2020. \n[44] D. Levy and J. C. Duchi. Necessary and sufficient geometries for gradient methods. In Advances in Neural Information Processing Systems 32, 2019. URL https://arxiv.org/abs/1909. 10455. \n[45] J. Liu and K. Talwar. Private selection from private candidates. In Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing, pages 298–309, 2019. \n[46] Y. Liu, A. Theertha Suresh, F. Yu, S. Kumar, and M. Riley. Learning discrete distributions: user vs item-level privacy. In Advances in Neural Information Processing Systems, 2020. \n[47] Y. Mansour, M. Mohri, and A. Rostamizadeh. Domain adaptation: Learning bounds and algorithms. In Proceedings of the Twenty Second Annual Conference on Computational Learning Theory, 2009. \n[48] H. B. McMahan, G. Andrew, U. Erlingsson, S. Chien, I. Mironov, N. Papernot, and P. Kairouz. A general approach to adding differential privacy to iterative training procedures. arXiv preprint arXiv:1812.06210, 2018. \n[49] H. B. McMahan, D. Ramage, K. Talwar, and L. Zhang. Learning differentially private recurrent language models. In International Conference on Learning Representations, 2018. \n[50] S. Mei, Y. Bai, A. Montanari, et al. The landscape of empirical risk for nonconvex losses. The Annals of Statistics, 46(6A):2747–2774, 2018. \n[51] S. Shalev-Shwartz, O. Shamir, N. Srebro, and K. Sridharan. Stochastic convex optimization. In Conference on Learning Theory, 2009. \n[52] R. Shokri and V. Shmatikov. Privacy-preserving deep learning. In Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security, pages 1310–1321, 2015. \n[53] A. Smith. Privacy-preserving statistical estimation with optimal convergence rates. In Proceedings of the forty-third annual ACM symposium on Theory of computing, pages 813–822, 2011. \n[54] A. T. Suresh, F. X. Yu, S. Kumar, and H. B. McMahan. Distributed mean estimation with limited communication. In D. Precup and Y. W. Teh, editors, Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 3329–3337, International Convention Centre, Sydney, Australia, 06–11 Aug 2017. PMLR. \n[55] United States Census Bureau. Statistical safeguards, 2018. Available at https://www.census. gov/about/policies/privacy/statistical_safeguards.html. \n[56] R. Vershynin. High Dimensional Probability: An Introduction with Applications in Data Science. Cambridge University Press, 2019. \n[57] M. J. Wainwright. High-Dimensional Statistics: A Non-Asymptotic Viewpoint. Cambridge University Press, 2019. \n[58] Z. Wang, M. Song, Z. Zhang, Y. Song, Q. Wang, and H. Qi. Beyond inferring class representatives: User-level privacy leakage from federated learning. In IEEE INFOCOM 2019-IEEE Conference on Computer Communications, pages 2512–2520. IEEE, 2019. \n[59] R. J. Wilson, C. Y. Zhang, W. Lam, D. Desfontaines, D. Simmons-Marengo, and B. Gipson. Differentially private SQL with bounded user contribution. Proceedings on Privacy Enhancing Technologies, 2:230–250, 2020. \n[60] B. Woodworth, K. K. Patel, and N. Srebro. Minibatch vs local SGD for heterogeneous distributed learning. In Proceedings of the 37th International Conference on Machine Learning, 2020. \n[61] B. E. Woodworth, J. Wang, A. Smith, B. McMahan, and N. Srebro. Graph oracle models, lower bounds, and gaps for parallel stochastic optimization. In Advances in Neural Information Processing Systems 31, 2018. \n[62] B. Yu. Assouad, Fano, and Le Cam. In Festschrift for Lucien Le Cam, pages 423–435. Springer-Verlag, 1997. ",
|
| 1479 |
+
"bbox": [
|
| 1480 |
+
179,
|
| 1481 |
+
512,
|
| 1482 |
+
828,
|
| 1483 |
+
912
|
| 1484 |
+
],
|
| 1485 |
+
"page_idx": 9
|
| 1486 |
+
},
|
| 1487 |
+
{
|
| 1488 |
+
"type": "text",
|
| 1489 |
+
"text": "",
|
| 1490 |
+
"bbox": [
|
| 1491 |
+
171,
|
| 1492 |
+
79,
|
| 1493 |
+
828,
|
| 1494 |
+
921
|
| 1495 |
+
],
|
| 1496 |
+
"page_idx": 10
|
| 1497 |
+
},
|
| 1498 |
+
{
|
| 1499 |
+
"type": "text",
|
| 1500 |
+
"text": "",
|
| 1501 |
+
"bbox": [
|
| 1502 |
+
171,
|
| 1503 |
+
39,
|
| 1504 |
+
828,
|
| 1505 |
+
924
|
| 1506 |
+
],
|
| 1507 |
+
"page_idx": 11
|
| 1508 |
+
},
|
| 1509 |
+
{
|
| 1510 |
+
"type": "text",
|
| 1511 |
+
"text": "",
|
| 1512 |
+
"bbox": [
|
| 1513 |
+
171,
|
| 1514 |
+
66,
|
| 1515 |
+
828,
|
| 1516 |
+
920
|
| 1517 |
+
],
|
| 1518 |
+
"page_idx": 12
|
| 1519 |
+
},
|
| 1520 |
+
{
|
| 1521 |
+
"type": "text",
|
| 1522 |
+
"text": "[63] Y. Zhang, J. Duchi, M. I. Jordan, and M. J. Wainwright. Information-theoretic lower bounds for distributed statistical estimation with communication constraints. In C. J. C. Burges, L. Bottou, M. Welling, Z. Ghahramani, and K. Q. Weinberger, editors, Advances in Neural Information Processing Systems, volume 26. Curran Associates, Inc., 2013. URL https://proceedings. neurips.cc/paper/2013/file/d6ef5f7fa914c19931a55bb262ec879c-Paper.pdf. ",
|
| 1523 |
+
"bbox": [
|
| 1524 |
+
174,
|
| 1525 |
+
92,
|
| 1526 |
+
826,
|
| 1527 |
+
161
|
| 1528 |
+
],
|
| 1529 |
+
"page_idx": 13
|
| 1530 |
+
}
|
| 1531 |
+
]
|
parse/train/G1jmxFOtY_/G1jmxFOtY__middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/G1jmxFOtY_/G1jmxFOtY__model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Hye9lnCct7/Hye9lnCct7.md
ADDED
|
@@ -0,0 +1,389 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# LEARNING ACTIONABLE REPRESENTATIONS WITH GOAL-CONDITIONED POLICIES
|
| 2 |
+
|
| 3 |
+
Dibya Ghosh, Abhishek Gupta, & Sergey Levine ∗
|
| 4 |
+
Department of Electrical Engineering and Computer Science
|
| 5 |
+
University of California, Berkeley
|
| 6 |
+
Berkeley, CA 94703, USA
|
| 7 |
+
|
| 8 |
+
# ABSTRACT
|
| 9 |
+
|
| 10 |
+
Representation learning is a central challenge across a range of machine learning areas. In reinforcement learning, effective and functional representations have the potential to tremendously accelerate learning progress and solve more challenging problems. Most prior work on representation learning has focused on generative approaches, learning representations that capture all the underlying factors of variation in the observation space in a more disentangled or well-ordered manner. In this paper, we instead aim to learn functionally salient representations: representations that are not necessarily complete in terms of capturing all factors of variation in the observation space, but rather aim to capture those factors of variation that are important for decision making – that are “actionable.” These representations are aware of the dynamics of the environment, and capture only the elements of the observation that are necessary for decision making rather than all factors of variation, eliminating the need for explicit reconstruction. We show how these learned representations can be useful to improve exploration for sparse reward problems, to enable long horizon hierarchical reinforcement learning, and as a state representation for learning policies for downstream tasks. We evaluate our method on a number of simulated environments, and compare it to prior methods for representation learning, exploration, and hierarchical reinforcement learning.
|
| 11 |
+
|
| 12 |
+
# 1 INTRODUCTION
|
| 13 |
+
|
| 14 |
+
Representation learning refers to a transformation of an observation, such as a camera image or state observation, into a form that is easier to manipulate to deduce a desired output or perform a downstream task, such as prediction or control. In reinforcement learning (RL) in particular, effective representations are ones that enable generalizable controllers to be learned quickly for challenging and temporally extended tasks. While end-to-end representation learning with full supervision has proven effective in many scenarios, from supervised image recognition (Krizhevsky et al., 2012) to vision-based robotic control (Levine et al., 2015), devising representation learning methods that can use unlabeled data or experience effectively remains an open problem.
|
| 15 |
+
|
| 16 |
+
Much of the prior work on representation learning in RL has focused on generative approaches. Learning these models is often challenging because of the need to model the interactions of all elements of the state. We instead aim to learn functionally salient representations: representations that are not necessarily complete in capturing all factors of variation in the observation space, but rather aim to capture factors of variation that are relevant for decision making – that are actionable.
|
| 17 |
+
|
| 18 |
+
How can we learn a representation that is aware of the dynamical structure of the environment? We propose that a basic understanding of the world can be obtained from a goal-conditioned policy, a policy that can knows how to reach arbitrary goal states from a given state. Learning how to execute shortest paths between all pairs of states suggests a deep understanding of the environment dynamics, and we hypothesize that a representation incorporating the knowledge of a goal-conditioned policy can be readily used to accomplish more complex tasks. However, such a policy does not provide a readily usable state representation, and it remains to choose how an effective state representation should be extracted. We want to extract those factors of the state observation that are critical for deciding which action to take. We can do this by comparing which actions a goal-conditioned policy takes for two different goal states. Intuitively, if two goal states require different actions, then they are functionally different and vice-versa. This principle is illustrated in the diagram in Figure 1. Based on this principle, we propose actionable representations for control (ARC), representations in which Euclidean distances between states correspond to expected differences between actions taken to reach them. Such representations emphasize factors in the state that induce significant differences in the corresponding actions, and de-emphasize those features that are irrelevant for control.
|
| 19 |
+
|
| 20 |
+
While learning a goal-conditioned policy to extract such a representation might itself represent a daunting task, it is worth noting that such a policy can be learned without any knowledge of downstream tasks, simply through unsupervised exploration of the environment. It is reasonable to postulate that, without active exploration, no representation learning method can possibly acquire a dynamics-aware representation, since understanding the dynamics requires experiencing transitions and interactions, rather than just observations of valid states. As we demonstrate in our experiments, representations extracted from goal-conditioned policies can be used to better learn more challenging tasks than simple goal reaching, which cannot be easily contextualized by goal states. The process of learning goal-conditioned policies can also be made recursive, so that the actionable representations learned from one goalconditioned policy can be used to quickly learn a better one.
|
| 21 |
+
|
| 22 |
+
Actionable representations for control are useful for a number of downstream tasks: as representations for task-specific policies, as representations for hierarchical RL, and to construct well-shaped reward functions. We show that ARCs enable these applications better than representations that are learned using unsupervised generative models, predictive models, and other prior representation learning methods. We analyze structure of the learned representation, and compare the performance of ARC with a number of prior methods on downstream tasks in simulated robotic domains such as wheeled locomotion, legged locomotion, and robotic manipulation.
|
| 23 |
+
|
| 24 |
+

|
| 25 |
+
Figure 1: Actionable representations: 3 houses A, B, C can only be reached by indicated roads. The actions taken to reach A, B, C are shown by arrows. Although A, B are very close in space, they are functionally different. The car has to take a completely different road to reach A, compared to $\mathbf { B }$ and C. Representations $z _ { A }$ , $z _ { B }$ , $z _ { C }$ learn these functional differences to differentiate A from B and C, while keeping B and C close.
|
| 26 |
+
|
| 27 |
+
# 2 PRELIMINARIES
|
| 28 |
+
|
| 29 |
+
Goal-conditioned reinforcement learning. In RL, the goal is to learn a policy $\pi _ { \boldsymbol { \theta } } \big ( a _ { t } | \boldsymbol { s } _ { t } \big )$ that maximizes the expected return $R _ { t } = \mathbb { E } _ { \pi _ { \theta } } [ \bar { \sum _ { t } r _ { t } } ]$ . Typically, RL learns a single task that optimizes for a particular reward function. If we instead would like to train a policy that can accomplish a variety of tasks, we might instead train a policy that is conditioned on another input – a goal. When the different tasks directly correspond to different states, this amounts to conditioning the policy $\pi$ on both the current and goal state. The policy $\pi _ { \boldsymbol { \theta } } ( a _ { t } | \boldsymbol { s } _ { t } , \boldsymbol { g } )$ is trained to reach goals from the state space $g \sim { \mathcal { S } }$ , by optimizing $\mathbb { E } _ { g \sim S } [ \mathbb { E } _ { \pi _ { \theta } ( a | s , g ) } ( R _ { g } ) ) ]$ , where $R _ { g }$ is a reward for reaching the goal $g$ .
|
| 30 |
+
|
| 31 |
+
Maximum entropy RL. Maximum entropy RL algorithms modify the RL objective, and instead learns a policy to maximize the reward as well as the entropy of the policy (Haarnoja et al., 2017; Todorov, 2006), according to $\begin{array} { r } { \pi ^ { \star } = \arg \operatorname* { m a x } _ { \pi } E _ { \pi } [ r ( s , a ) ] \stackrel { } { + } \mathcal { H } ( \pi ) } \end{array}$ . In contrast to standard RL, where optimal policies in fully observed environments are deterministic, the solution in maximum entropy RL is a stochastic policy, where the entropy reflects the sensitivity of the rewards to the action: when the choice of action has minimal effect on future rewards, actions are more random, and when the choice of action is critical, the actions are more deterministic. In this way, the action distributions for a maximum entropy policy carry more information about the dynamics of the task.
|
| 32 |
+
|
| 33 |
+

|
| 34 |
+
Figure 2: An illustration of actionable representations. For a pair of states $s _ { 1 } , s _ { 2 }$ , the divergence between the goal-conditioned action distributions they induce defines the actionable distance $D _ { \mathrm { { A c t } } }$ which in turn is used to learn representation $\phi$ .
|
| 35 |
+
|
| 36 |
+
# 3 LEARNING ACTIONABLE REPRESENTATIONS
|
| 37 |
+
|
| 38 |
+
In this work, we extract a representation that can distinguish states based on actions required to reach them, which we term an actionable representation for control (ARC). In order to learn state representations $\phi$ that can capture the elements of the state which are important for decision making, we first consider defining actionable distances $D _ { \mathrm { A c t } } ( s _ { 1 } , s _ { 2 } )$ between states. Actionable distances are distances between states that capture the differences between the actions required to reach the different states, thereby implicitly capturing dynamics. If actions required for reaching state $s _ { 1 }$ are very different from the actions needed for reaching state $s _ { 2 }$ , then these states are functionally different, and should have large actionable distances. This subsequently allows us to extract a feature representation $( \phi ( s ) )$ of state, which captures elements that are important for decision making.
|
| 39 |
+
|
| 40 |
+
To formally define actionable distances, we build on the framework of goal-conditioned RL. We assume that we have already trained a maximum entropy goal-conditioned policy $\pi _ { \boldsymbol { \theta } } ( a | \boldsymbol { s } , \boldsymbol { g } )$ that can start at an arbitrary state $s _ { 0 } \in S$ in the environment, and reach a goal state $s _ { g } \in \mathcal S$ . Although this is a significant assumption, we will discuss later how this is in fact reasonable in many settings. We can extract actionable distances by examining how varying the goal state affects action distributions for goal-conditioned policies. Formally, consider two different goal states $s _ { 1 }$ and $s _ { 2 }$ . At an intermediate state $s$ , the goal-conditioned policy induces different action distributions $\pi _ { \boldsymbol { \theta } } ( a | \boldsymbol { s } , \boldsymbol { s } _ { 1 } )$ and $\pi _ { \boldsymbol { \theta } } ( a | \boldsymbol { s } , \boldsymbol { s } _ { 2 } )$ to reach $s _ { 1 }$ and $s _ { 2 }$ respectively. If these distributions are similar over many intermediate states $s$ , this suggests that these states are functionally similar, while if these distributions are different, then the states must be functionally different. This motivates a definition for actionable distances $D _ { \mathrm { { A c t } } }$ as
|
| 41 |
+
|
| 42 |
+
$$
|
| 43 |
+
D _ { \mathrm { A c t } } ( s _ { 1 } , s _ { 2 } ) = \mathbb { E } _ { s } \left[ D _ { K L } ( \pi ( a | s , s _ { 1 } ) | | \pi ( a | s , s _ { 2 } ) ) + D _ { K L } ( \pi ( a | s , s _ { 2 } ) | | \pi ( a | s , s _ { 1 } ) ) \right] .
|
| 44 |
+
$$
|
| 45 |
+
|
| 46 |
+
The distance consists of the expected divergence over all initial states $s$ (refer to Section $\mathbf { B }$ for how we do this practically). If we focus on a subset of states, the distance may not capture action differences induced elsewhere, and can miss functional differences between states. Since maximum entropy policies learn unique optimal stochastic policies, the actionable distance is well-defined and unambiguous. Furthermore, because max-ent policies capture sensitivity of the value function, goals are similar under ARC if they require the same action and they are equally “easy” to reach.
|
| 47 |
+
|
| 48 |
+
We can use $D _ { \mathrm { { A c t } } }$ to extract an actionable representation of state. To learn this representation $\phi ( s )$ , we optimize $\phi$ such that Euclidean distance between states in representation space corresponds to actionable distances $D _ { \mathrm { { A c t } } }$ between them. This optimization yields good representations of state because it emphasizes the functionally relevant elements of state, which significantly affect the actionable distance, while suppressing less functionally relevant elements of state. The problem is:
|
| 49 |
+
|
| 50 |
+
$$
|
| 51 |
+
\displaystyle \operatorname* { m i n } _ { \phi } \mathbb { E } _ { s _ { 1 } , s _ { 2 } } \bigg [ \| \phi ( s _ { 1 } ) - \phi ( s _ { 2 } ) \| _ { 2 } - D _ { \mathrm { A c t } } ( s _ { 1 } , s _ { 2 } ) \bigg ] ^ { 2 }
|
| 52 |
+
$$
|
| 53 |
+
|
| 54 |
+
This objective yields representations where Euclidean distances are meaningful. This is not necessarily true in the state space or in generative representations (Section 6.4). These representations are meaningful for several reasons. First, since we are leveraging a goal-conditioned policy, they are aware of dynamics and are able to capture local connectivity of the environment. Secondly, the representation is optimized so that it captures only the functionally relevant elements of state.
|
| 55 |
+
|
| 56 |
+
Requirement for Goal Conditioned Policy: A natural question to ask is whether needing a goalconditioned policy is too strong of a prerequisite. However, it is worth noting that the GCP can be trained with existing RL methods (TRPO) using a sparse task-agnostic reward (Section 6.2, Appendix A.1) – obtaining such a policy is not especially difficult, and existing methods are quite capable of doing so ( Nair et al. (2018)). Furthermore, it is likely not possible to acquire a functionalityaware state representation without some sort of active environment interaction, since dynamics can only be understood by observing outcomes of actions, rather than individual states. Importantly, we discuss in the following section how ARCs help us solve tasks beyond what a simple goalconditioned policy can achieve.
|
| 57 |
+
|
| 58 |
+
# 4 USING ACTIONABLE REPRESENTATIONS FOR DOWNSTREAM TASKS
|
| 59 |
+
|
| 60 |
+
A natural question that emerges when learning representations from a goal-conditioned policy pertains to what such a representation enables over the goal-conditioned policy itself. Although goalconditioned policies enable reaching between arbitrary states, they suffer from fundamental limitations: they do not generalize very well to new states, and they are limited to solving only goalreaching tasks. We show in our empirical evaluation that the ARC representation expands meaningfully over these limitations of a goal-conditioned policy - to new tasks and to new regions of the environment. In this section, we detail how ARCs can be used to generalize beyond a goalconditioned policy to help solve tasks that cannot be expressed as goal reaching (Section 4.1), tasks involving larger regions of state space (Section 4.2), and temporally extended tasks which involve sequences of goals (Section 4.3).
|
| 61 |
+
|
| 62 |
+
# 4.1 FEATURES FOR LEARNING POLICIES
|
| 63 |
+
|
| 64 |
+
Goal-conditioned policies are trained with only a goal-reaching reward, and so are unaware of reward structures used for other tasks in the environment which do not involve simple goal-reaching. Tasks which cannot be expressed as simply reaching a goal are abundant in real life scenarios such as navigation under non-uniform preferences or manipulation with costs on quality of motion, and for such tasks, using the ARC representation as input for a policy or value function can make the learning problem easier. We can learn a policy for a downstream task, of the form $\pi _ { \theta } ( a | \phi ( s ) )$ , using the representation $\phi ( s )$ instead of state $s$ . The implicit understanding of the environment dynamics in the learned representation prioritizes the parts of the state that are most important for learning, and enables quicker learning for these tasks as we see in Section 6.6.
|
| 65 |
+
|
| 66 |
+
# 4.2 REWARD SHAPING
|
| 67 |
+
|
| 68 |
+
We can use ARC to construct better-shaped reward functions. It is common in continuous control to define rewards in terms of some distance to a desired state, oftentimes using Euclidean distance (Schulman et al., 2015; Lillicrap et al., 2015). However, Euclidean distance in state space is not necessarily a meaningful metric of functional proximity. ARC provides a better metric, since it directly accounts for reachability. We can use the actionable representation to define better-shaped reward functions for downstream tasks. We define a shaping of this form to be the negative Euclidean distance between two states in ARC space: $- | | \phi ( s _ { 1 } ) - \bar { \phi ( s _ { 2 } ) } | | _ { 2 }$ : for example, on a goal-reaching task $r ( s ) = r _ { \mathrm { s p a r s e } } ( s , s _ { g } ) - | | \phi ( s ) - \phi ( s _ { g } ) | | _ { 2 }$ . This allows us to explore and learn policies even in the presence of sparse reward functions.
|
| 69 |
+
|
| 70 |
+
One may wonder whether, instead of using ARCs for reward shaping, we might directly use the goalconditioned policy to reach a particular goal. As we will illustrate in Section 6.5, the representation typically generalizes better than the goal-conditioned policy. Goal-conditioned policies typically can be trained on small regions of the state space, but don’t extrapolate well to new parts of the state space. We observe that ARC exhibits better generalization, and can provide effective reward shaping for goals that are very difficult to reach with the goal-conditioned policy.
|
| 71 |
+
|
| 72 |
+
# 4.3 HIERARCHICAL REINFORCEMENT LEARNING
|
| 73 |
+
|
| 74 |
+
Goal-conditioned policies can serve as low-level controllers for hierarchical tasks which require synthesizing a particular sequence of behaviours, and thus not expressible as a single goal-reaching objective. One approach to solving such tasks learns a high-level controller $\pi _ { \mathrm { m e t a } } ( g | s )$ via RL that produces desired goal states for a goal-conditioned policy to reach sequentially (Nachum et al., 2018). The high-level controller suggests a goal, which the goal conditioned policy attempts to reach for several time-steps, following which the high-level controller picks a new goal. For many tasks, naively training such a high-level controller which outputs goals directly in state space is unlikely to perform well, since such a controller must disentangle the relevant attributes in the goal for long horizon reasoning. We consider two schemes to use ARCs for hierarchical RL - learning a high level policy which commands directly in ARC space or commands in a clustered latent space.
|
| 75 |
+
|
| 76 |
+
HRL directly in ARC space: ARC representations provide a better goal space for high-level controllers, since they de-emphasize components of the goal space irrelevant for determining the optimal action. In this scheme, the high-level controller $\pi _ { \mathrm { m e t a } } ( z | s )$ observes the current state and generates a distribution over points in the latent space. At every meta-step, a sample $z _ { h }$ is taken from $\pi _ { \mathrm { m e t a } } ( z | s )$ which represents the high level command. $z _ { h }$ is then translated into a goal $g _ { h }$ via a decoder which is trained to reconstruct states from their corresponding goals. This goal $g _ { h }$ can then be used to command the goal conditioned policy for several time steps, before resampling again from $\pi _ { \mathrm { m e t a } }$ . A high-level controller producing outputs in ARC space does not need to rediscover saliency in the goal space, which makes the search problem less noisy and more accurate. We show in Section 4.3 that using ARC as a hierarchical goal space enables significant improvement for waypoint navigation tasks.
|
| 77 |
+
|
| 78 |
+

|
| 79 |
+
Figure 3: Hierarchical RL with ARC. Left: Directly commanding in ARC space Right: Commanding a cluster in ARC space
|
| 80 |
+
|
| 81 |
+
Clustering in ARC space: Since ARC captures the topology of the environment, clusters in ARC space often correspond to semantically meaningful state abstractions. We utilize these clusters, with the intuition that a meta-controller searching in “cluster space” should learn faster than directly outputting states. In this scheme, we first build a discrete number of clusters by clustering the points that the goal conditioned policy is trained on using the $\mathbf { k }$ -means algorithm within the ARC representation space. We then train a high-level controller $\pi _ { \mathrm { m e t a } } ( c | s )$ which observes a state $s$ and generates a distribution over discrete clusters $c$ . At every meta-step, a cluster sample $c _ { h }$ is taken from $\pi _ { \mathrm { m e t a } } ( c | s )$ . A goal in state space $g _ { h }$ is then chosen uniformly at random from points within the cluster $c _ { h }$ and used to command the GCP for several time steps before the next cluster is sampled from $\pi _ { \mathrm { m e t a } }$ . We train a meta-policy to output clusters, instead of states: $\pi _ { m e t a } ( { \mathrm { c l u s t e r } } | s )$ . We see that for hierarchical tasks with less granular reward functions such as room navigation, performing RL in “cluster space” induced by ARC outperform cluster spaces induced by other representations, since the distance metric is much more meaningful in ARC space.
|
| 82 |
+
|
| 83 |
+
# 5 RELATED WORK
|
| 84 |
+
|
| 85 |
+
The capability to learn effective representations is a major advantage of deep neural network models. These representations can be acquired implicitly, through end-to-end training (Goodfellow et al., 2016), or explicitly, by formulating and optimizing a representation learning objective. A classic approach to representation learning is generative modeling, where a latent variable model is trained to model the data distribution, and the latent variables are then used as a representation (Rasmus et al., 2015; Dumoulin et al., 2016; Kingma & Welling, 2013; Finn et al., 2015; Ghadirzadeh et al., 2017; Curran et al., 2015; Goroshin et al., 2015; Higgins et al., 2017). In the context of control and sequence models, generative models have also been proposed to model transitions (Watter et al., 2015; Assael et al., 2015; Zhang et al., 2018b; Kurutach et al., 2018). While generative models are general and principled, they must not only explain the entirety of the input observation, but must also generate it. Several methods perform representation learning without generation, often based on contrastive losses (Sermanet et al., 2018; van den Oord et al., 2018; Belghazi et al., 2018; Chopra et al., 2005; Weinberger & Saul, 2009). While these methods avoid generation, they either still require modeling of the entire input, or utilize heuristics that encode user-defined information.
|
| 86 |
+
|
| 87 |
+
In contrast, ARCs are directly trained to focus on decision-relevant features of input, providing a broadly applicable objective that is still selective about which aspects of input to represent.
|
| 88 |
+
|
| 89 |
+
In the context of RL and control, representation learning methods have been used for many downstream applications (Lesort et al., 2018), including representing value functions (Barreto et al., 2016) and building models (Watter et al., 2015; Assael et al., 2015; Zhang et al., 2018b). Our approach is complementary: it can also be applied to these applications. Several works have sought to learn representations that are specifically suited for physical dynamical systems (Jonschkowski & Brock, 2015) and that use interaction to build up dynamics-aware features (Bengio et al., 2017; LaversanneFinot et al., 2018). In contrast to Jonschkowski & Brock (2015), our method does not attempt to encode all physically-relevant features of state, only those relevant for choosing actions. In contrast to Bengio et al. (2017); Laversanne-Finot et al. (2018), our approach does not try to determine which features of the state can be independently controlled, but rather which features are relevant for choosing controls. Srinivas et al. (2018) also consider learning representations through goal-directed behaviour, but receives supervision through demonstrations instead of active observation. Related methods learn features that are predictive of actions based on pairs of sequential states (so-called inverse models) (Agrawal et al., 2016; Pathak et al., 2017; Zhang et al., 2018a). More recent work such as (Burda et al., 2018b) perform a large scale study of these types of methods in the context of exploration. Unlike ARC, which is learned from a policy performing long-horizon control, inverse models are not obliged to represent all relevant features for multi-step control, and suffer from greedy reasoning.
|
| 90 |
+
|
| 91 |
+
# 6 EXPERIMENTS
|
| 92 |
+
|
| 93 |
+
The aim of our experimental evaluation is to study the following research questions:
|
| 94 |
+
|
| 95 |
+
1. Can we learn ARCs for multiple continuous control environments? What are the properties
|
| 96 |
+
of these learned representations?
|
| 97 |
+
2. Can ARCs be used as feature representations for learning policies quickly on new tasks?
|
| 98 |
+
3. Can reward shaping with ARCs enable faster learning?
|
| 99 |
+
4. Do ARCs provide an effective mechanism for hierarchical RL?
|
| 100 |
+
|
| 101 |
+
Full experimental and hyperparemeter tuning details are presented in the appendix.
|
| 102 |
+
|
| 103 |
+
# 6.1 DOMAINS
|
| 104 |
+
|
| 105 |
+
We study six simulated environments as illustrated in Figure 4: 2D navigation tasks in two settings, wheeled locomotion tasks in two settings, legged locomotion, and object pushing with a robotic gripper. The 2D navigation domains consist of either a room with a central divider wall or four rooms. Wheeled locomotion involves a two-wheeled differential drive robot, either in free space or with four rooms. For legged locomotion, we use a quadrupedal ant robot, where the state space consists of all joint angles, along with the Cartesian position of the center of mass (CoM). The manipulation task uses a simulated Sawyer arm to push an object, where the state consists of endeffector and object positions. Further details are presented in Appendix C.
|
| 106 |
+
|
| 107 |
+
These environments present interesting representation learning challenges. In 2D navigation, the walls impose structure similar to those in Figure 1: geometrically proximate locations on either side of a wall are far apart in terms of reachability. The locomotion environments present an additional challenge: an effective representation must account for the fact that the internal joints of each robot (legs or wheel orientation) are less salient for long-horizon tasks than CoM. The original state representation does not reflect this structure: joint angles expressed in radians carry as much weight as CoM positions in meters. In the object manipulation task, a key representational challenge is to distinguish between pushing the block and simply moving the arm in free space.
|
| 108 |
+
|
| 109 |
+
# 6.2 LEARNING THE GOAL-CONDITIONED POLICY AND ARC REPRESENTATION
|
| 110 |
+
|
| 111 |
+
We first learn a stochastic goal-conditioned policy parametrized by a neural network which outputs actions given the current state and the desired goal. This goal-conditioned policy is trained using a sparse reward using entropy-regularized Trust Region Policy Optimization (TRPO) (Schulman et al., 2015). For a discussion of the assumption about the existence of a goal-conditioned policy, please refer to Section 3. Exact details about the training procedure, the reward function, and hyperparameters are presented in Appendix A.1. To train the ARC representation, we collect a dataset of 500 trajectories with horizon 100 from the goal-conditioned policy, where each trajectory has an arbitrary start state and intended goal state. We optimize Eqn 2 as a supervised learning problem using this dataset to train the representation, computing the relevant expectations by uniform sampling from states in the dataset. A detailed outline of the training procedure, along with hyperparameter and architecture choices, is presented in Appendix A.2.
|
| 112 |
+
|
| 113 |
+

|
| 114 |
+
Figure 4: The tasks in our evaluation. The 2D navigation tasks allow for easy visualization and analysis, while the more complex tasks allow us to investigate how well ARC and prior methods can discern the most functionally-relevant features of the state.
|
| 115 |
+
|
| 116 |
+
# 6.3 COMPARISONS WITH PRIOR WORK
|
| 117 |
+
|
| 118 |
+
We compare ARC to other representation learning methods used in previous works for control: variational autoencoders (Kingma & Welling, 2013) (VAE), variational autoencoders trained for feature slowness (Jonschkowski & Brock, 2015) (slowness), features extracted from a predictive model (Oh et al., 2015) (predictive model), features extracted from inverse models (Agrawal et al., 2016; Burda et al., 2018a), and a na¨ıve baseline that uses the full state space as the representation (state). Details of the exact objectives used to train these methods is provided in Appendix B.
|
| 119 |
+
|
| 120 |
+
For each downstream task in Section 4, we also compare with alternative approaches for solving the task not involving representation learning. For reward shaping, we compare with VIME (Houthooft et al., 2016), an exploration method based on novelty bonuses. For hierarchical RL, we compare with option critic (Klissarov et al., 2017) and an on-policy adaptation of HIRO (Nachum et al., 2018). We also compare to model-based reinforcement learning with MPC (Nagabandi et al., 2017), a method which explicitly learns and uses environment dynamics, as compared to the implicit dynamics learnt by ARC. Because sample complexity of model-based and model-free methods differ, all results with model-based reinforcement learning indicate final performance.
|
| 121 |
+
|
| 122 |
+
To ensure a fair comparison between the methods, we provide the same information and trajectory data that ARC receives to all of the representation learning methods. Each representation is trained on the same dataset of trajectories collected from the goal-conditioned policy, ensuring that each comparisons receives data from the full state distribution and meaningful transitions.
|
| 123 |
+
|
| 124 |
+

|
| 125 |
+
6.4 ANALYSIS OF LEARNED ACTIONABLE REPRESENTATIONS
|
| 126 |
+
Figure 5: Visualization of ARC for 2D navigation. The states in the environment are colored to help visualize their position in representation space. For the wall task, points on opposite sides of the wall are clearly separated in ARC space (c). For four rooms, we see that ARCs provide a clear decomposition into room clusters (f), while VAEs do not (e).
|
| 127 |
+
|
| 128 |
+
We analyze the structure of ARC space for the tasks described in Section 6.1, to identify which factors of state ARC chooses to emphasize, and how system dynamics affect the representation.
|
| 129 |
+
|
| 130 |
+
In the 2D navigation tasks, we visualize the original state and learned representations in Figure 5. In both environments, ARC reflects the dynamics: points close by in Euclidean distance in the original state space are distant in representation space when they are functionally distinct. For instance, there is a clear separation in the latent space where the wall should be, and points on opposite sides of the wall are much further apart in ARC space (Figure 5) than in the original environment and in the VAE representation. In the room navigation task, the passages between rooms are clear bottlenecks, and the ARC representation separates the rooms according to these bottlenecks.
|
| 131 |
+
|
| 132 |
+

|
| 133 |
+
Figure 6: Perturbation analysis (Section 6.4): Effective representations vary significantly with perturbations to functionally relevant elements of state (shown in orange), and less for secondary elements (shown in purple). ARC exhibits this property, with a spread orange region - robot CoM or object position, and a suppressed purple region - joint angles and other secondary elements. The VAE and naive state representations do not capture this saliency, containing spread purple regions.
|
| 134 |
+
|
| 135 |
+
The representations learned in more complex domains, such as wheeled or legged locomotion and block manipulation, also show meaningful patterns. We aim to understand which elements of state are being emphasized by the representation, by analyzing how distances in the latent space change as we perturb various elements of state. (Fig 6). For each environment, we determine two factors in the state: one which we consider salient for decision making (in orange), and one which is secondary (in purple). We expect a good representation to have a larger variation in distance as we perturb the important factor than when we perturb the secondary factor. In the legged locomotion environment, the CoM is the important factor and the joint angles are secondary. As we perturb the CoM, the representation should vary significantly, while the effect should be muted as we perturb the joints. For the wheeled environment, position of the car should cause large variations while the orientation should be secondary. For the object pushing, we expect block position to be salient and end-effector position to be secondary. Since distances in the high-dimensional representation space are hard to visualize, we project [ARC, VAE, State] representations of perturbed states into 2 dimensions (Fig 6) using multi-dimensional scaling (MDS) (Borg & Groenen, 2005), which projects points while preserving Euclidean distances. From Fig 6, we see that ARC captures the factors of interest; as the important factor is perturbed the representation changes significantly (spread out orange points), while when the secondary factor is perturbed the representation changes minimally (close together purple points). This implies that for Ant, ARC captures CoM while suppressing joint angles; for wheeled, ARC captures position while suppressing orientation; for block pushing, ARC captures block position, suppressing arm movement. Both VAE representations and original state space are unable to capture this.
|
| 136 |
+
|
| 137 |
+
# 6.5 LEVERAGING ACTIONABLE REPRESENTATIONS FOR REWARD SHAPING
|
| 138 |
+
|
| 139 |
+
As desribed in Section 4.2, distances in ARC space can be used for reward shaping to solve tasks that present a large exploration challenge with sparse reward functions. We investigate this on two challenging exploration tasks for wheeled locomotion and legged locomotion (seen in Fig 7). We acquire an ARC from a goal-conditioned policy in the region $s$ where the $\mathbf { \mathrm { C o M } }$ is within a $2 \mathrm { m }$ square. The learned representation is then used to guide learning via reward shaping for learning a goal-conditioned policy on a larger region $S ^ { \prime }$ , where the CoM is within a square of $8 \mathrm { m }$ . The task is to reach arbitrary goals in $S ^ { \prime }$ , but with only a sparse goal completion reward, so exploration is challenging.We shape the reward with a term corresponding to distance between the representation of the current and desired state: $r ( s , g ) = r _ { \mathrm { s p a r s e } } - \| \phi ( s ) - \phi ( g ) \| _ { 2 }$ . To ensure fairness, all comparisons initialize from the goal-conditioned policy on small region $s$ and train on the same data. Further details on the experimental setup for this domain can be found in Appendix A.3.
|
| 140 |
+
|
| 141 |
+

|
| 142 |
+
Figure 7: Learning new tasks with reward shaping in representation space. ARC representations are more effective than other methods, and match the performance of a hand-specified shaping.
|
| 143 |
+
|
| 144 |
+
As shown in Fig 7, ARC demonstrates faster learning speed and better asymptotic performance over all compared methods, when all are initialized from the goal conditioned policy trained on the small region. This can be attributed to the fact that, unlike the other representation learning algorithms, the ARC representation explicitly optimizes for functional distances in latent space, which generalizes well to a larger domain since the functionality in the new space is preserved. The performance of ARC is similar to a hand-designed reward shaping corresponding to distance in COM space, corroborating Figure 6 that ARC considers CoM to be the most salient feature. We notice that representations which are dynamics-aware (ARC, predictive models, inverse models) outperform VIME, which uses a novelty-based exploration strategy without considering environment dynamics, indicating that effectively incorporating dynamics information into representations can help tackle exploration challenges in large environments.
|
| 145 |
+
|
| 146 |
+
# 6.6 LEVERAGING ACTIONABLE REPRESENTATIONS AS FEATURES FOR LEARNING POLICIES
|
| 147 |
+
|
| 148 |
+
We consider using the ARC representation as a feature space for learning policies for tasks that cannot be expressed with a goal-reaching objective. We consider a quadruped ant robot task which requires the agent to reach a target (shown in green in Fig 8) while avoiding a dangerous region (shown in red in Fig 8). Instead of learning a policy from state $\pi ( a | s )$ , we learn a policy using a representation $\phi$ as features $\pi ( a | \phi ( s ) )$ . It is important to note that this task cannot be solved directly by a goal-conditioned policy (GCP), and a GCP attempting to reach the specified goal will walk through the dangerous region and receive a reward of -760. The reward function for this task and other experimental details are noted in Appendix A.4.
|
| 149 |
+
|
| 150 |
+

|
| 151 |
+
Figure 8: ARCs as policy features. Top: Reach-while-avoiding task Bottom: Task learning curves
|
| 152 |
+
|
| 153 |
+
Although all the methods ultimately learn to solve the task, policies using ARC features learn at a significantly faster rate (Figure 8). Policies using ARC features solve the task by Iteration 100, by which point all other methods can only solve with
|
| 154 |
+
|
| 155 |
+
$5 \%$ success. We attribute the rapid learning progress to the ability of ARC to emphasize elements of the state that are important for multi-timestep control, rather than greedy features discovered by reconstruction or one-step prediction. Features which emphasize elements important for control make learning easier because they reduce redundancy and noise in the input, and allows the RL algorithm to effectively assign credit. We further note that other representation learning methods learn only as fast as the original state representation, and model-based MPC controllers (Nagabandi et al., 2017) also perform suboptimally. It is important to note that the same representation can be used to quickly train many different tasks, amortizing the cost of training a GCP.
|
| 156 |
+
|
| 157 |
+
We consider using ARC representations to control high-level controllers for learning temporally extended navigation tasks in room and waypoint navigation settings, as described in Section 4. In the multi-room environments, the agent must navigate through a sequence of 50 rooms in order, receiving a sparse reward when it enters the correct room. In waypoint navigation, the ant must reach a sequence of waypoints in order with a similar sparse reward. These tasks are illustrated in $\operatorname { F i g } 9$ , and are described in detail in Appendix A.5.
|
| 158 |
+
|
| 159 |
+
We evaluate the two schemes for hierarchical reasoning with ARCs detailed in Section 4.3: commanding directly in representation space or through a $k$ -means clustering of the representation space. We train a high-level controller $\pi _ { h }$ with TRPO which outputs as actions either a direct point in the latent space $z _ { h }$ or a cluster index $c _ { h }$ , from which a goal $g _ { h }$ is decoded and passed to the goal-conditioned policy to follow for 50 timesteps. Exact specifications and details are in Appendix A.5 and A.6.
|
| 160 |
+
|
| 161 |
+

|
| 162 |
+
Figure 9: Waypoint and multi-room HRL tasks
|
| 163 |
+
|
| 164 |
+

|
| 165 |
+
Figure 10: Comparison on hierarchical tasks. ARCs perform significantly better than other representation methods, option-critic, and commanding goals in state space
|
| 166 |
+
|
| 167 |
+
Using a hierarchical meta-policy with ARCs performs significantly better than those using alternative representations which do not properly capture abstraction and environment dynamics (Fig 10). For multi-rooms, ARC clusters very clearly capture different rooms (Fig 5), so commanding in cluster space reduces redundancy in action space, allowing for effective exploration. ARC likely works better than commanding goals in spaces learned by other representation learning algorithms, because the learned ARC space is more structured for high-level control, which makes search and clustering simpler. Semantically similar states like two points in the same room end up in the same ARC cluster, thus simplifying the high-level planning process for the meta-controller. As compared to learning from scratch via TRPO and standard HRL methods such as option critic (Klissarov et al., 2017) and an on-policy adaptation of HIRO (Nachum et al., 2018), commanding in representation space enables more effective search and high-level control. The failure of TRPO and option-critic, algorithms not using a goal-conditioned policy, emphasizes the task difficulty and indicates that a goal-conditioned policy trained on simple reaching tasks can be re-used to solve long-horizon problems. Commanding in ARC space is better than in state space using HIRO because state space has redundancies which makes search challenging.
|
| 168 |
+
|
| 169 |
+
# 7 DISCUSSION
|
| 170 |
+
|
| 171 |
+
In this work, we introduce actionable representations for control (ARC), which capture representations of state important for decision making. We build on the framework of goal-conditioned RL to extract state representations that emphasize features of state that are functionally relevant. The learned state representations are implicitly aware of the dynamics, and capture meaningful distances in representation space. ARCs are useful for tasks such as learning policies, HRL and exploration. While ARC are learned by first training a goal-conditioned policy, learning this policy using offpolicy data is a promising direction for future work. Interleaving the process of representation learning and learning of the goal-conditioned policy promises to scale ARC to more general tasks.
|
| 172 |
+
|
| 173 |
+
Acknowledgements This research was supported by Berkeley DeepDrive, Honda, an ONR Young Investigator Program Award, Google, and computational resources from Amazon. Abhishek Gupta was supported by an NSF Graduate Research Fellowship. We thank Pim de Haan, Aviv Tamar, Vitchyr Pong, and Ignasi Clavera for helpful insights and discussions.
|
| 174 |
+
|
| 175 |
+
# REFERENCES
|
| 176 |
+
|
| 177 |
+
Pulkit Agrawal, Ashvin Nair, Pieter Abbeel, Jitendra Malik, and Sergey Levine. Learning to poke by poking: Experiential learning of intuitive physics. CoRR, abs/1606.07419, 2016.
|
| 178 |
+
|
| 179 |
+
John-Alexander M. Assael, Niklas Wahlstrom, Thomas B. Sch ¨ on, and Marc Peter Deisenroth. Data- ¨ efficient learning of feedback policies from image pixels using deep dynamical models. CoRR, abs/1510.02173, 2015.
|
| 180 |
+
|
| 181 |
+
Andre Barreto, R ´ emi Munos, Tom Schaul, and David Silver. Successor features for transfer in ´ reinforcement learning. CoRR, abs/1606.05312, 2016.
|
| 182 |
+
|
| 183 |
+
Ishmael Belghazi, Sai Rajeswar, Aristide Baratin, R. Devon Hjelm, and Aaron C. Courville. MINE: mutual information neural estimation. CoRR, abs/1801.04062, 2018.
|
| 184 |
+
|
| 185 |
+
Emmanuel Bengio, Valentin Thomas, Joelle Pineau, Doina Precup, and Yoshua Bengio. Independently controllable features. CoRR, abs/1703.07718, 2017.
|
| 186 |
+
|
| 187 |
+
I. Borg and P.J.F. Groenen. Modern Multidimensional Scaling: Theory and Applications. Springer, 2005.
|
| 188 |
+
|
| 189 |
+
Yuri Burda, Harri Edwards, Deepak Pathak, Amos Storkey, Trevor Darrell, and Alexei A. Efros. Large-scale study of curiosity-driven learning. In arXiv:1808.04355, 2018a.
|
| 190 |
+
|
| 191 |
+
Yuri Burda, Harrison Edwards, Deepak Pathak, Amos J. Storkey, Trevor Darrell, and Alexei A. Efros. Large-scale study of curiosity-driven learning. CoRR, abs/1808.04355, 2018b.
|
| 192 |
+
|
| 193 |
+
Sumit Chopra, Raia Hadsell, and Yann LeCun. Learning a similarity metric discriminatively, with application to face verification. In 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR 2005), 20-26 June 2005, San Diego, CA, USA, pp. 539–546, 2005. doi: 10.1109/CVPR.2005.202.
|
| 194 |
+
|
| 195 |
+
William Curran, Tim Brys, Matthew E. Taylor, and William D. Smart. Using PCA to efficiently represent state spaces. CoRR, abs/1505.00322, 2015.
|
| 196 |
+
|
| 197 |
+
Vincent Dumoulin, Ishmael Belghazi, Ben Poole, Alex Lamb, Mart´ın Arjovsky, Olivier Mastropietro, and Aaron C. Courville. Adversarially learned inference. CoRR, abs/1606.00704, 2016.
|
| 198 |
+
|
| 199 |
+
Chelsea Finn, Xin Yu Tan, Yan Duan, Trevor Darrell, Sergey Levine, and Pieter Abbeel. Learning visual feature spaces for robotic manipulation with deep spatial autoencoders. CoRR, abs/1509.06113, 2015.
|
| 200 |
+
|
| 201 |
+
Ali Ghadirzadeh, Atsuto Maki, Danica Kragic, and Marten Bj ˚ orkman. Deep predictive policy train- ¨ ing using reinforcement learning. In 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems, IROS 2017, Vancouver, BC, Canada, September 24-28, 2017, pp. 2351– 2358, 2017. doi: 10.1109/IROS.2017.8206046.
|
| 202 |
+
|
| 203 |
+
Ian Goodfellow, Yoshua Bengio, Aaron Courville, and Yoshua Bengio. Deep learning, volume 1. MIT Press, 2016.
|
| 204 |
+
|
| 205 |
+
Ross Goroshin, Michael Mathieu, and Yann LeCun. Learning to linearize under uncertainty. In ¨ Advances in Neural Information Processing Systems 28: Annual Conference on Neural Information Processing Systems 2015, December 7-12, 2015, Montreal, Quebec, Canada, pp. 1234–1242, 2015.
|
| 206 |
+
|
| 207 |
+
Tuomas Haarnoja, Haoran Tang, Pieter Abbeel, and Sergey Levine. Reinforcement learning with deep energy-based policies. CoRR, abs/1702.08165, 2017.
|
| 208 |
+
|
| 209 |
+
Irina Higgins, Arka Pal, Andrei A. Rusu, Lo¨ıc Matthey, Christopher Burgess, Alexander Pritzel, Matthew Botvinick, Charles Blundell, and Alexander Lerchner. DARLA: improving zero-shot transfer in reinforcement learning. In Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017, pp. 1480–1490, 2017.
|
| 210 |
+
|
| 211 |
+
Rein Houthooft, Xi Chen, Yan Duan, John Schulman, Filip De Turck, and Pieter Abbeel. Curiosity-driven exploration in deep reinforcement learning via bayesian neural networks. CoRR, abs/1605.09674, 2016.
|
| 212 |
+
|
| 213 |
+
Rico Jonschkowski and Oliver Brock. Learning state representations with robotic priors. Auton. Robots, 39(3):407–428, 2015. doi: 10.1007/s10514-015-9459-7.
|
| 214 |
+
|
| 215 |
+
Diederik P. Kingma and Max Welling. Auto-encoding variational bayes. CoRR, abs/1312.6114, 2013.
|
| 216 |
+
|
| 217 |
+
Martin Klissarov, Pierre-Luc Bacon, Jean Harb, and Doina Precup. Learnings options end-to-end for continuous action tasks. CoRR, abs/1712.00004, 2017. URL http://arxiv.org/abs/ 1712.00004.
|
| 218 |
+
|
| 219 |
+
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.
|
| 220 |
+
|
| 221 |
+
Thanard Kurutach, Aviv Tamar, Ge Yang, Stuart J. Russell, and Pieter Abbeel. Learning plannable representations with causal infogan. CoRR, abs/1807.09341, 2018.
|
| 222 |
+
|
| 223 |
+
Adrien Laversanne-Finot, Alexandre Per´ e, and Pierre-Yves Oudeyer. Curiosity driven exploration ´ of learned disentangled goal spaces. In 2nd Annual Conference on Robot Learning, CoRL 2018, Zurich, Switzerland, 29-31 October 2018, Proceedings ¨ , pp. 487–504, 2018.
|
| 224 |
+
|
| 225 |
+
Timothee Lesort, Natalia D ´ ´ıaz Rodr´ıguez, Jean-Franc¸ois Goudou, and David Filliat. State representation learning for control: An overview. CoRR, abs/1802.04181, 2018.
|
| 226 |
+
|
| 227 |
+
Sergey Levine, Chelsea Finn, Trevor Darrell, and Pieter Abbeel. End-to-end training of deep visuomotor policies. CoRR, abs/1504.00702, 2015.
|
| 228 |
+
|
| 229 |
+
Timothy P. Lillicrap, Jonathan J. Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. CoRR, abs/1509.02971, 2015.
|
| 230 |
+
|
| 231 |
+
Ofir Nachum, Shixiang Gu, Honglak Lee, and Sergey Levine. Data-efficient hierarchical reinforcement learning. CoRR, abs/1805.08296, 2018.
|
| 232 |
+
|
| 233 |
+
Anusha Nagabandi, Gregory Kahn, Ronald S. Fearing, and Sergey Levine. Neural network dynamics for model-based deep reinforcement learning with model-free fine-tuning. CoRR, abs/1708.02596, 2017.
|
| 234 |
+
|
| 235 |
+
Ashvin Nair, Vitchyr Pong, Murtaza Dalal, Shikhar Bahl, Steven Lin, and Sergey Levine. Visual reinforcement learning with imagined goals. CoRR, abs/1807.04742, 2018.
|
| 236 |
+
|
| 237 |
+
Junhyuk Oh, Xiaoxiao Guo, Honglak Lee, Richard L. Lewis, and Satinder P. Singh. Actionconditional video prediction using deep networks in atari games. CoRR, abs/1507.08750, 2015.
|
| 238 |
+
|
| 239 |
+
Deepak Pathak, Pulkit Agrawal, Alexei A. Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. In 2017 IEEE Conference on Computer Vision and Pattern Recognition Workshops, CVPR Workshops, Honolulu, HI, USA, July 21-26, 2017, pp. 488–489, 2017. doi: 10.1109/CVPRW.2017.70.
|
| 240 |
+
|
| 241 |
+
Antti Rasmus, Harri Valpola, Mikko Honkala, Mathias Berglund, and Tapani Raiko. Semisupervised learning with ladder network. CoRR, abs/1507.02672, 2015.
|
| 242 |
+
|
| 243 |
+
John Schulman, Sergey Levine, Pieter Abbeel, Michael I. Jordan, and Philipp Moritz. Trust region policy optimization. In Proceedings of the 32nd International Conference on Machine Learning, ICML 2015, Lille, France, 6-11 July 2015, pp. 1889–1897, 2015.
|
| 244 |
+
|
| 245 |
+
Pierre Sermanet, Corey Lynch, Yevgen Chebotar, Jasmine Hsu, Eric Jang, Stefan Schaal, Sergey Levine, and Google Brain. Time-contrastive networks: Self-supervised learning from video. In 2018 IEEE International Conference on Robotics and Automation, ICRA 2018, Brisbane, Australia, May 21-25, 2018, pp. 1134–1141, 2018. doi: 10.1109/ICRA.2018.8462891.
|
| 246 |
+
|
| 247 |
+
Aravind Srinivas, Allan Jabri, Pieter Abbeel, Sergey Levine, and Chelsea Finn. Universal planning networks. arXiv preprint arXiv:1804.00645, 2018.
|
| 248 |
+
|
| 249 |
+
Emanuel Todorov. Linearly-solvable markov decision problems. In Advances in Neural Information Processing Systems 19, Proceedings of the Twentieth Annual Conference on Neural Information Processing Systems, Vancouver, British Columbia, Canada, December 4-7, 2006, pp. 1369–1376, 2006.
|
| 250 |
+
|
| 251 |
+
Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predic-¨ tive coding. CoRR, abs/1807.03748, 2018.
|
| 252 |
+
|
| 253 |
+
Manuel Watter, Jost Tobias Springenberg, Joschka Boedecker, and Martin A. Riedmiller. Embed to control: A locally linear latent dynamics model for control from raw images. In Advances in Neural Information Processing Systems 28: Annual Conference on Neural Information Processing Systems 2015, December 7-12, 2015, Montreal, Quebec, Canada, pp. 2746–2754, 2015.
|
| 254 |
+
|
| 255 |
+
Kilian Q. Weinberger and Lawrence K. Saul. Distance metric learning for large margin nearest neighbor classification. Journal of Machine Learning Research, 10:207–244, 2009. doi: 10. 1145/1577069.1577078.
|
| 256 |
+
|
| 257 |
+
Amy Zhang, Harsh Satija, and Joelle Pineau. Decoupling dynamics and reward for transfer learning. CoRR, abs/1804.10689, 2018a.
|
| 258 |
+
|
| 259 |
+
Marvin Zhang, Sharad Vikram, Laura Smith, Pieter Abbeel, Matthew J. Johnson, and Sergey Levine. SOLAR: deep structured latent representations for model-based reinforcement learning. CoRR, abs/1808.09105, 2018b.
|
| 260 |
+
|
| 261 |
+
# A EXPERIMENTAL DETAILS
|
| 262 |
+
|
| 263 |
+
# A.1 TRAINING THE GOAL-CONDITIONED POLICY
|
| 264 |
+
|
| 265 |
+
We train a stochastic goal-conditioned policy $\pi ( \cdot | s , g )$ using TRPO with an entropy regularization term, where the goal space $\mathcal { G }$ coincides with the state space $s$ . In every episode, a starting state and a goal state $s , g \in S$ are sampled from a uniform distribution on states, with a sparse reward given of the form below, where $\epsilon$ is task-specific, and listed in the table below.
|
| 266 |
+
|
| 267 |
+
$$
|
| 268 |
+
r ( s , g ) = { \left\{ \begin{array} { l l } { 0 } & { \| s - g \| _ { \infty } > \epsilon } \\ { \epsilon - \| s - g \| _ { \infty } } & { \| s - g \| _ { \infty } < \epsilon } \end{array} \right. }
|
| 269 |
+
$$
|
| 270 |
+
|
| 271 |
+
For the Sawyer environment, although this sparse reward formulation can learn a goal-conditioned policy, it is highly sample inefficient, so in practice we use a shaped reward as detailed in Appendix C. For all of the other environments, in the free space and rooms environments, the goal-conditioned policy is trained using a sparse reward.
|
| 272 |
+
|
| 273 |
+
The goal-conditioned policy is parameterized as $\pi _ { \boldsymbol { \theta } } ( a | s , g ) \sim \mathcal { N } ( \mu _ { \boldsymbol { \theta } } ( s , g ) , \Sigma _ { \boldsymbol { \theta } } )$ . The mean, $\mu _ { \boldsymbol { \theta } } ( \cdot , \cdot )$ is a fully-connected neural network which takes in the state and the desired goal state as a concatenated vector, and has three hidden layers containing 150, 100, and 50 units respectively. $\Sigma$ is a learned diagonal covariance matrix, and is initially set to $\Sigma = I$ .
|
| 274 |
+
|
| 275 |
+
<table><tr><td></td><td>Navigation</td><td>Wheeled Navigation</td><td>Ant Navigation</td><td>Sawyer Pushing</td></tr><tr><td>State/Goal Space Dimension</td><td>2</td><td>6</td><td>15</td><td>6</td></tr><tr><td>Action Space Dimension</td><td>2</td><td>2</td><td>7</td><td>3</td></tr><tr><td>Sparse Reward Threshold (ε)</td><td>0.1</td><td>0.5</td><td>1</td><td>0.3</td></tr><tr><td># Trajectories per Iteration</td><td>100</td><td>200</td><td>250</td><td>500</td></tr><tr><td># Steps in Trajecotry</td><td>50</td><td>100</td><td>200</td><td>100</td></tr><tr><td># Iterations</td><td>200</td><td>1000</td><td>2000</td><td>2000</td></tr><tr><td>Entropy Penalty</td><td>1</td><td>1</td><td>0.1</td><td>0.1</td></tr><tr><td>Learning Rate</td><td>.01</td><td>.02</td><td>.02</td><td>.01</td></tr></table>
|
| 276 |
+
|
| 277 |
+
# A.2 TRAINING THE REPRESENTATION
|
| 278 |
+
|
| 279 |
+
After training a goal-conditioned policy $\pi$ on the specified region of interest, we collect 500 trajectories each of length 100 timesteps, where each trajectory starts at an arbitrary start state, going towards an arbitrary goal state, selected exactly as the goal-conditioned policy was trained in Appendix A.1. This dataset was chosen to be large enough so that the collected dataset has full coverage of the entire state space. Each of the representation learning methods evaluated is trained on this dataset, which means that each learning algorithm receives data from the full state space, and witnesses meaningful transitions between states $( s _ { t } , s _ { t + 1 } )$ .
|
| 280 |
+
|
| 281 |
+
We evaluate ARCs against representations minimizing reconstruction error (VAE, slowness) and representations performing one-step prediction (predictive model, inverse dynamics). For each representation, each component is parametrized by a neural network with ReLU activations and linear outputs, and the objective function is optimized using Adam with a learning rate of $1 0 ^ { - 3 }$ , holding out $20 \%$ of the trajectories as a validation set. We perform coarse hyperparameter sweeps over various hyperparameters for all of the methods, including the dimensionality of the latent state, the size of the neural networks, and the parameters which weigh the various terms in the objectives. The exact objective functions for each representation are detailed further in Appendix B.
|
| 282 |
+
|
| 283 |
+
# A.3 REWARD SHAPING
|
| 284 |
+
|
| 285 |
+
We test the reward shaping capabilities of the learned representations with a set of navigation tasks on the Wheeled and Ant tasks. A goal-conditioned policy $\pi$ is trained on a $n \times n$ meter square of free space, and representations are learned (as specified above) on trajectories collected in this small region. We then attempt to generalize to an $m \times m$ meter square (where $m > > n$ ), and consider the set of tasks of reaching an arbitrary goal in the larger region: a start state and goal state are chosen uniformly at random every episode. The environment setup is identical to that in Appendix A.1, although with a larger region, and policy training is done the same with two distinctions. Instead of training with the sparse reward $r _ { s p a r s e } ( s , g )$ , we train on a ”shaped” surrogate reward
|
| 286 |
+
|
| 287 |
+
$$
|
| 288 |
+
r _ { s h a p e d , \phi } ( s , g ) = r _ { s p a r s e } ( s , g ) - \alpha \| \phi ( s ) - \phi ( g ) \| _ { 2 }
|
| 289 |
+
$$
|
| 290 |
+
|
| 291 |
+
where $\alpha$ weights between the euclidean distance and the sparse reward terms. Second, the policy is initialized to the parameters of the original goal-conditioned policy $\pi$ which was previously trained on the small region to help exploration. As a heuristic for the best possible shaping term, we compare with a ”hand-specified” In addition to reward shaping with the various representations, we also compare to a dedicated exploration algorithm, VIME (Houthooft et al., 2016), which also uses TRPO as a base algorithm. Understanding that different representation learning methods may learn representations with varying scales, we performed a hyperparameter sweep on $\alpha$ for all the representation methods. For VIME, we performed a hyperparameter sweep on $\eta$ . The parameters used for TRPO are exactly those in Appendix A.1, albeit for 3000 iterations.
|
| 292 |
+
|
| 293 |
+
# A.4 FEATURES FOR POLICIES
|
| 294 |
+
|
| 295 |
+
We test the ability of the representation to be used as features for a policy learning some downstream task within the Ant environment. The downstream task is a ”reach-while-avoid” task, in which the Ant requires the quadruped robot to start at the point $( - 1 . 5 , - 1 . 5 )$ and reach the point (1.5, 1.5) while avoiding a circular region centered at the origin with radius 1 (all units in meters). Letting $d _ { g o a l } ( s )$ be the distance of the agent to (1.5, 1.5) and $d _ { o r i g i n } ( s )$ to be the distance of the agent to the origin, the reward function for the task is
|
| 296 |
+
|
| 297 |
+
$$
|
| 298 |
+
r ( s ) = - d _ { g o a l } ( s ) - 4 * \mathbf { 1 } \{ d _ { o r i g i n } ( s ) < 1 \}
|
| 299 |
+
$$
|
| 300 |
+
|
| 301 |
+
For any given representation $\phi ( s )$ , we train a policy which uses the feature representation as input as follows. We use TRPO to train a stochastic policy $\pi ( a | \phi ( s ) )$ , which is of the form $\mathcal { N } ( \mu _ { \boldsymbol { \theta } } ( \phi ( s ) ) , \Sigma _ { \boldsymbol { \theta } } )$ . The mean is a fully connected neural network which takes in the representation, and has two layers of size 50 each, and $\Sigma$ is a learned diagonal covariance matrix initially set to $\Sigma = I$ . Note that gradients do not flow through the representation, so only the policy is adapted and the representation is fixed for the entirety of the experiment.
|
| 302 |
+
|
| 303 |
+
# A.5 HIERARCHICAL REINFORCEMENT LEARNING IN LATENT SPACE
|
| 304 |
+
|
| 305 |
+
We provide comparisons on using the learned representation to direct a goal-conditioned policy for long-horizon sequential tasks. In particular, we consider a waypoint reaching task for the Ant, in which the agent must navigate to a sequence of 50 target locations in order: $\left\{ ( x _ { 1 } , y _ { 1 } ) , ( x _ { 2 } , y _ { 2 } ) , \dots ( x _ { 5 0 } , y _ { 5 0 } ) \right\}$ . The agent receives as input the state of the ant and the checkpoint number that it is currently trying to reach (encoded as a one-hot vector). When the agent gets within $0 . 5 \mathrm { m }$ of the checkpoint, it receives $+ 1$ reward, and the checkpoint is moved to the next point, making this a highly sparse reward. Target locations are sampled uniformly at random from a $8 \times 8$ meter region, but are fixed for the entirety of the experiment.
|
| 306 |
+
|
| 307 |
+
We consider learning a high-level policy $\pi _ { h } ( z _ { h } | s )$ which outputs goals in latent space, which are then executed by a goal-conditioned policy as described in Appendix A.1. Specifically, when the high-level policy outputs a goal in latent space $z _ { h }$ , we use a reconstruction network $\psi$ , which is described below, to receive a goal state $g _ { h } = \psi ( z _ { h } )$ . The goal-conditioned policy executes for 50 timesteps according to $\pi ( a | s , \bar { g } _ { h } )$ . The high-level policy is trained with TRPO with the reward being equal to the sum of the rewards obtained by running the goal-conditioned policy for every meta-step. We parametrize the high-level policy $\pi _ { h } ( z _ { h } | s )$ as having a Gaussian distribution in the latent space, with the mean being specified as a MLP with two layers of 50 units and Tanh activations, and the covariance as a learned diagonal matrix independent of state.
|
| 308 |
+
|
| 309 |
+
To allow the latent representation $z$ to provide commands for the goal-conditioned policy, we separately train a reconstruction network $\psi$ which minimizes the loss function $\mathbb { E } _ { s } [ \lVert \psi ( \phi ( s ) ) - s \rVert _ { 2 } ]$ . For any latent $z$ , we can now use $\psi ( z )$ as an input into the goal-conditioned policy. Note that an alternative method of providing commands in latent space is to train a new goal-conditioned policy $\pi _ { \phi }$ , which is trained to minimize the loss $\mathbb { E } _ { s , g } [ D _ { K L } ( \pi _ { \phi } ( \cdot | s , \phi ( g ) ) \| \pi ( \cdot | s , g ) ) ]$ , however to maintain abstraction between the representation and the goal-conditioned policy, we choose the former approach.
|
| 310 |
+
|
| 311 |
+
# A.6 HIERARCHICAL REINFORCEMENT LEARNING IN CLUSTER SPACE
|
| 312 |
+
|
| 313 |
+
We provide comparisons on using the learned representation to direct a goal-conditioned policy in cluster space, as described in Section 4. We consider navigation through a sequence of rooms in order in the rooms and wheeled rooms environment, as visualized in Figure 4. A sequence of 50 checkpoints are sampled uniformly from the four rooms with the extra constraint that the same room is never repeated two checkpoints in a row (that is, each checkpoint is chosen to be any of the four rooms), and held fixed for the entirety of the experiment. The agent is tasked with going through these rooms in order, receiving a $+ 1$ reward every time it enters the appropriate room. The policy receives as input the state of the agent, and which number checkpoint the agent is currently trying to reach (encoded as a 50-dimensional one-hot vector).
|
| 314 |
+
|
| 315 |
+
After having learned a representation $\phi$ using some set of trajectory data, as described in Appendix A.2, we run $k$ -means clustering on states in the trajectory data to cluster latent states in the representation into $k$ components. We then consider learning a high-level policy $\pi _ { h } ( c _ { h } \vert s )$ which outputs a cluster between $\{ 1 \ldots k \}$ . Given a cluster number $c _ { h }$ from the high-level policy, the low-level policy samples a latent state $z _ { h }$ uniformly from the cluster, and then proceeds to command a learnt goal-conditioned policy exactly as described in Appendix A.5.
|
| 316 |
+
|
| 317 |
+
Specifically, we learn a high-level policy of the form $\pi _ { h } ( c _ { h } | s ) \sim \mathrm { C a t e g o r i c a l } ( p _ { \theta } ( s ) )$ using TRPO where the probabilities for each cluster are specified by a neural network $\pi _ { \theta }$ which has two layers of 50 units each, with Tanh activations, and a final Softmax activation to normalize outputs into the probability simplex.
|
| 318 |
+
|
| 319 |
+
We performed hyperparameter sweeps over $k$ - the number of clusters - for each representation method.
|
| 320 |
+
|
| 321 |
+
# B BENCHMARK REPRESENTATIONS
|
| 322 |
+
|
| 323 |
+
We provide the loss functions that are used to train each of the representations evaluated in our work. All representations are trained on a dataset of trajectories $\mathcal { D } \stackrel { - } { = } \{ \tau _ { i } \} _ { i = 1 } ^ { n }$ . We use the notation $s \sim \mathcal { D }$ to denote sampling a state uniformly at random from a trajectory uniformly at random from the dataset. We use the notation $s _ { t } , s _ { t + 1 } \sim \mathcal { D }$ to denote sampling a state and the state right after it according to the same uniform sampling scheme.
|
| 324 |
+
|
| 325 |
+
• ARC - After precomputing $D _ { a c t }$ :a matrix of actionable distances, we train a neural network $\phi$ to minimize
|
| 326 |
+
|
| 327 |
+
$$
|
| 328 |
+
\begin{array} { r l r } & { } & { D _ { a c t } \big ( s _ { i } , s _ { j } \big ) = \mathbb { E } _ { s \sim \mathcal { D } } \left[ D _ { K L } \big ( \pi ( a | s , s _ { i } ) \| \pi ( a | s , s _ { j } ) \big ) \right] } \\ & { } & { \mathcal { L } ( \phi ) = \mathbb { E } _ { s \sim \mathcal { D } } \left[ \mathbb { E } _ { s ^ { \prime } \sim \mathcal { D } } \left[ \| \| \phi ( s ) - \phi ( s ^ { \prime } ) \| - D _ { a c t } ( s , s ^ { \prime } ) \| ^ { 2 } \right] \right] } \end{array}
|
| 329 |
+
$$
|
| 330 |
+
|
| 331 |
+
• VAE (Kingma & Welling, 2013) - Given $q _ { \phi } ( z | x ) = \mathcal { N } ( \mu _ { \phi } ( x ) , \sigma _ { \phi } ( x ) ) , p _ { \theta } ( x | z ) = $ $\mathcal { N } ( \psi _ { \theta } ( z ) , \bar { I } )$ , and $p ( z ) = \bar { \mathcal { N } } ( 0 , I )$
|
| 332 |
+
|
| 333 |
+
$$
|
| 334 |
+
\mathcal { L } ( \phi , \theta ) = \mathbb { E } _ { s \sim \mathcal { D } } \left[ \mathbb { E } _ { z \sim q _ { \phi } ( x ) } \left[ \log p _ { \theta } ( x | z ) - \beta D _ { K L } \big ( q _ { \theta } ( z | x ) \| p ( z ) \big ) \right] \right]
|
| 335 |
+
$$
|
| 336 |
+
|
| 337 |
+
Here $\mu _ { \phi } , \sigma _ { \phi } , \psi _ { \theta }$ are all neural networks, and $\beta$ is a tunable hyperparameter. The loglikelihood term is equivalent to minimizing mean squared error.
|
| 338 |
+
|
| 339 |
+
• Slowness (Jonschkowski & Brock, 2015) - Given $q _ { \phi } ( z | x ) = \mathcal { N } ( \mu _ { \phi } ( x ) , \sigma _ { \phi } ( x ) ) , p _ { \theta } ( x | z ) =$ $\mathcal { N } ( \psi _ { \theta } ( z ) , I )$ , and $p ( z ) = \mathcal { N } ( 0 , I )$
|
| 340 |
+
|
| 341 |
+
$$
|
| 342 |
+
\begin{array} { r } { \mathcal { L } ( \phi , \theta ) = \mathbb { E } _ { ( s _ { t } , s _ { t + 1 } ) \sim \mathcal { D } } \left[ \mathbb { E } _ { z \sim q _ { \phi } ( s _ { t } ) } \left[ \log p \theta ( s _ { t } | z ) - \beta D _ { K L } ( q _ { \theta } ( z | x ) \| p ( z ) ) - \alpha \| \mu _ { \theta } ( s _ { t + 1 } - \mu _ { \theta } ( s _ { t } ) \| ] \right] \right] } \end{array}
|
| 343 |
+
$$
|
| 344 |
+
|
| 345 |
+
Here $\mu _ { \phi } , \sigma _ { \phi } , \psi _ { \theta }$ are all neural networks, and $\alpha , \beta$ are tunable hyperparameters. The loglikelihood terms are equivalent to minimizing mean squared error.
|
| 346 |
+
|
| 347 |
+
• Predictive Model (Oh et al., 2015) - Given $z = \phi ( s _ { t } )$ , $\hat { z } _ { t + 1 } = f ( z , a )$ and $\psi ( z ) = \hat { s }$ , we
|
| 348 |
+
|
| 349 |
+
$$
|
| 350 |
+
\mathcal { L } ( \phi , f , \psi ) = \mathbb { E } _ { ( s _ { t } , a _ { t } , s _ { t + 1 } ) \sim \mathcal { D } } \left[ \| s _ { t + 1 } - \psi ( f ( \phi ( s _ { t } ) , a _ { t } ) ) \| _ { 2 } ^ { 2 } \right]
|
| 351 |
+
$$
|
| 352 |
+
|
| 353 |
+
where $\phi$ is the learnt representation, $f$ a model in representation space, and $\psi$ a reconstruction network retrieving are all neural networks.
|
| 354 |
+
|
| 355 |
+
• Inverse Model (Burda et al., 2018a) - Given $z _ { t } ~ = ~ \phi ( s _ { t } ) , \hat { z } _ { t + 1 } ~ = ~ f ( z _ { t } , a ) , \hat { a } _ { t + 1 } ~ = ~$ $g ( z _ { t } , z _ { t + 1 } )$
|
| 356 |
+
|
| 357 |
+
$$
|
| 358 |
+
\mathcal { L } ( \phi , f , g ) = \mathbb { E } _ { ( s _ { t } , a _ { t } , a _ { t + 1 } ) \sim \mathcal { D } } \left[ \| a _ { t } - g ( \phi ( s _ { t } ) , \phi ( s _ { t + 1 } ) ) \| _ { 2 } ^ { 2 } + \beta \| \phi ( s _ { t + 1 } ) - f ( \phi ( s _ { t } ) , a _ { t } ) \| _ { 2 } ^ { 2 } \right]
|
| 359 |
+
$$
|
| 360 |
+
|
| 361 |
+
Here, $\phi$ is the learnt representation, $f$ is a learnt model in the representation space, and $g$ is a learnt inverse dynamics model in the representation space. $\beta$ is a hyperparameter which controls how forward prediction error is balanced with inverse prediction error.
|
| 362 |
+
|
| 363 |
+
# C TASK DESCRIPTIONS
|
| 364 |
+
|
| 365 |
+
• 2D Navigation This environment consists of an agent navigating to points in an environment, either with a wall as in Figure 4a or with four rooms, as in Figure 4b. The state space is 2-dimensional, consisting of the Cartesian coordinates of the agent. The agent has acceleration control, so the action space is 2-dimensional. Downstream tasks for this environment include reaching target locations in the environment and navigating through a sequence of 50 rooms.
|
| 366 |
+
|
| 367 |
+
• Wheeled Navigation This environment consists of a car navigating to locations in an empty region, or with four rooms, as illustrated in Figure 4. The state space is 6-dimensional, consisting of the Cartesian coordinates, heading, forward velocity, and angular velocity of the car. The agent controls the velocity of both of its wheels, resulting in a 2-dimensional action space. Goal-conditioned policies are trained within a $3 \times 3$ meter square.
|
| 368 |
+
|
| 369 |
+
Downstream tasks for wheeled navigation include reaching target locations in the environment, navigating through sequences of rooms, and navigating through sequences of waypoints.
|
| 370 |
+
|
| 371 |
+
• Ant This task requires a quadrupedal ant robot navigating in free space.The state space is 15-dimensional, consisting of the Cartesian coordinates of the ant, body orientation as a quaternion, and all the joint angles of the ant. The agent must use torque control to control it’s joints, resulting in an 8-dimensional action space. Goal conditioned policies are trained within a $2 \times 2$ meter square.
|
| 372 |
+
|
| 373 |
+
Downstream tasks for the ant include reaching target locations in the environment, navigating through sequences of waypoints, and reaching target locations while avoiding other locations.
|
| 374 |
+
|
| 375 |
+
• Sawyer This environment involves a Sawyer manipulator and a freely moving block on a table-top. The state space is 6-dimensional, consisting of the Cartesian coordinates of the end-effector of the Sawyer, and the Cartesian coordinates of the block. The Sawyer is controlled via end-effector position control with a 3-dimensional action space.
|
| 376 |
+
|
| 377 |
+
Because training a goal-conditioned policy takes an inordinate number of samples for the Sawyer environment, we instead use the following shaped reward to train the GCVF where $h ( s ) { \overline { { } } }$ is the position of the hand and $o ( s )$ is the position of the object
|
| 378 |
+
|
| 379 |
+
$$
|
| 380 |
+
r _ { s h a p e d } ( s , g ) = r _ { s p a r s e } ( s , g ) - \| h ( s ) - o ( s ) \| - 2 \| o ( s ) - o ( g ) \|
|
| 381 |
+
$$
|
| 382 |
+
|
| 383 |
+
# D HYPERPARAMETER TUNING
|
| 384 |
+
|
| 385 |
+
We perform hyperparameter tuning on three ends: one to discover appropriate parameters for each representation for each environment which are then held constant for the experimental analysis, then on the downstream applications, to choose a scaling factor for reward shaping (see Appendix A.3), and to choose the number of clusters for the hierarchical RL experiments in cluster space (see Appendix A.6).
|
| 386 |
+
|
| 387 |
+
To discover appropriate parameters for each representation for the legged and wheeled locomotion environments, we evaluate representations on the downstream reward-shaping task, performing a hyperparameter sweep on latent dimension and the parameters which weigh the various terms in the representation learning objectives. We keep the network architecture fixed for each representation and each task. We emphasize carefully here that the ARC representation requires no parameters to tune beyond the size of the latent dimension, and we perform a hyperparameter sweep on the penalty terms to ensure that other methods aren’t improperly penalized. On the size of the latent dimension, we sweep over $\{ 2 , 3 , 4 \}$ for wheeled locomotion and $\{ 3 , 5 , 7 , 9 , 1 1 \}$ for the ant. For the relative weighting for the penalty terms for the comparison representations (defined by $\beta$ in Appendix B), we evaluate possible values $\beta \in \{ 4 ^ { - 2 } , 4 ^ { - 1 } , \dot { 1 } , 4 ^ { 1 } , 4 ^ { 2 } \}$ . These representations are then fixed and used for all the downstream applications.
|
| 388 |
+
|
| 389 |
+
For reward shaping, we tune the relative scales between the sparse reward and the shaping term, (denoted by $\alpha$ in Appendix A.3) over possible values $\alpha \in \{ 1 , 4 ^ { 1 } , 4 ^ { 2 } , 4 ^ { 3 } , 4 ^ { 4 } \}$ for each representation on both the legged and wheeled locomotion environments. Tuning for $\alpha$ is required because the representations may have different latent dimensions and different scales, and chose to perform this hyperparameter sweep instead of adding a term to the representation learning objectives to ensure uniformity in scale. For performing $k$ -means clustering on the HRL cluster experiments, we sweep over possible values $k \in \{ 4 , 5 , 6 , 7 , 8 \}$ for each representation on the room navigation tasks for 2D and wheeled navigation, but however found that most representations were robust to choice of the number of clusters.
|
parse/train/Hye9lnCct7/Hye9lnCct7_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Hye9lnCct7/Hye9lnCct7_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Hye9lnCct7/Hye9lnCct7_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/MQQeeDiO5vv/MQQeeDiO5vv.md
ADDED
|
@@ -0,0 +1,303 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Combiner: Full Attention Transformer with Sparse Computation Cost
|
| 2 |
+
|
| 3 |
+
∗Hongyu Ren†, ∗Hanjun Dai⋄, ∗Zihang Dai⋄ Mengjiao Yang⋄, Jure Leskovec†, Dale Schuurmans⋄,‡, Bo Dai⋄ †Stanford University, {hyren,jure}@cs.stanford.edu ⋄Google Research, Brain Team, {hadai,zihangd,sherryy,schuurmans,bodai}@google.com ‡University of Alberta
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
Transformers provide a class of expressive architectures that are extremely effective for sequence modeling. However, the key limitation of transformers is their quadratic memory and time complexity $\mathcal { O } ( L ^ { 2 } )$ with respect to the sequence length in attention layers, which restricts application in extremely long sequences. Most existing approaches leverage sparsity or low-rank assumptions in the attention matrix to reduce cost, but sacrifice expressiveness. Instead, we propose Combiner, which provides full attention capability in each attention head while maintaining low computation and memory complexity. The key idea is to treat the self-attention mechanism as a conditional expectation over embeddings at each location, and approximate the conditional distribution with a structured factorization. Each location can attend to all other locations, either via direct attention, or through indirect attention to abstractions, which are again conditional expectations of embeddings from corresponding local regions. We show that most sparse attention patterns used in existing sparse transformers are able to inspire the design of such factorization for full attention, resulting in the same sub-quadratic cost $( { \mathcal { O } } ( L \log ( L ) )$ or $\mathcal { O } ( L \sqrt { L } ) )$ . Combiner is a drop-in replacement for attention layers in existing transformers and can be easily implemented in common frameworks. An experimental evaluation on both autoregressive and bidirectional sequence tasks demonstrates the effectiveness of this approach, yielding state-of-the-art results on several image and text modeling tasks.
|
| 8 |
+
|
| 9 |
+
# 1 Introduction
|
| 10 |
+
|
| 11 |
+
The Transformer [1] is a powerful neural network architecture that has demonstrated state-of-the-art performance in machine translation [2] and many other natural language processing (NLP) tasks via pretraining, using either unidirectional language modeling [3] or bidirectional language modeling [4–8]. It has also achieved excellent results in other domains like image recognition [9], code understanding [10], speech recognition [11], protein [12], music [13] and image [14] generative modeling. The core component of Transformer is the attention mechanism, which computes dependencies between all pairs of positions in a sequence. However, for a sequence of length $L$ , the expressiveness of pairwise attention comes at a quadratic cost $\mathcal { O } ( L ^ { 2 } )$ in both time and memory consumption. This makes the vanilla Transformer [1] prohibitive for applications that involve long sequences, including high-resolution images, protein sequences, or raw speech signals [15], where the sequence length $L$ is often larger than 10, 000 [14].
|
| 12 |
+
|
| 13 |
+
Recently, there have been several attempts to scale up attention to long sequences. A popular class of methods sparsifies the attention matrix with different sparsity patterns, including local window [16, 17], local+stride [14], log-sparse [18], axial [19, 20], or learnable patterns through hashing [21] or clustering [22]. Sparse attention enjoys sub-quadratic cost, but is lossy in capturing all-pair relationships. Generally, sparse attention requires more layers [14, 20, 23] to achieve full autoregressive or bidirectional dependencies (or receptive fields [20]) for each location in a long sequence.
|
| 14 |
+
|
| 15 |
+
Alternatively, another line of research has tried to achieve scalability with an explicit low-rank assumption [24, 25] on the attention matrix or by using explicit feature maps of some kernels [26]. However these explicit low dimensional approximations might be too restricted for the potentially full rank attention matrix, which uses exponential kernels that are effectively infinite dimensional [27]. The Performer [28] is among the first works that attempts to approximate regular full-rank attention with the random feature trick [29]. However such random-feature based approaches [30] require many more bases to better approximate the exponential kernel [27], and empirically we found it produces inferior results in some sequence modeling tasks, such as density estimation.
|
| 16 |
+
|
| 17 |
+
In this paper we propose Combiner, a drop-in replacement for the vanilla quadratic attention mechanism with sub-quadratic computation and memory cost. Combiner still achieves full attention capability within each head of Multi-Head Attention, unlike approaches that adopt sparse or low-rank approximations. As we will discuss, the standard attention computed at each location can be seen as the conditional expectation of the value embeddings at all feasible locations given the current location. Based on such an understanding, Combiner explicitly approximates the conditional distribution in through a structured factorization of the probability space. Specifically, given a location $x$ , the probability of attending to location $y$ can be either directly calculated via the query vector of $x$ and key vector of $y$ , or indirectly through a local abstraction where $x$ first attends to the key vector that represents a group of locations containing $y$ , and multiplying the probability of choosing $y$ within that group. We refer to this model as Combiner since the conditional distributions in attention become a combination between several local attentions and direct attentions. This structured decomposition enables Combiner to take existing sparse attention patterns and convert them into corresponding design choices for probability factorizations that achieve full attention. As shown in Figure 1, Combiner achieves full attention with the same asymptotic complexity as sparse variants. Combiner can be easily implemented in most existing deep learning frameworks without the need for specialized hardware implementation, and is GPU/TPU friendly. In fact, both the fixed and learnable sparse attention patterns from many existing Transformer variants [14, 18, 20, 22] can be enhanced with such structured factorizations, with the same order of time or memory cost.
|
| 18 |
+
|
| 19 |
+
We validate Combiner on both autoregressive and bidirectional sequence modeling tasks over a variety of domains including text and images. We show that Combiner can achieve better perplexity and accuracy when using the same transformer architectures while being much faster in terms of runtime, and achieves state of the art performance on density estimation on standard datasets CIFAR-10 (2.77 bits/dim) and ImageNet-64 (3.42 bits/dim), as well as the Long-Range Arena [31]. The implementation of Combiner can be found at https://github.com/google-research/googleresearch/tree/master/combiner.
|
| 20 |
+
|
| 21 |
+
# 2 Attention as Conditional Expectation
|
| 22 |
+
|
| 23 |
+
In this section, we revisit the formulation of the standard Transformer [1] from the perspective of conditional expectation, which inspires the derivation of Combiner.
|
| 24 |
+
|
| 25 |
+
Without loss of generality, we use a single sequence in the self-attention scenario. Given a sequence of $L$ embeddings $X = \bar { [ { x _ { 1 } } , { x _ { 2 } } , { . . . , \bar { { x _ { L } } } } ] }$ , where $X \in \mathbb { R } ^ { L \times d }$ and each embedding $x _ { i } \in \mathbb { R } ^ { d }$ is a $d$ -dimensional vector, the core component of Transformer is the multi-head attention, where each head $h$ is a scaled dot-product attention:
|
| 26 |
+
|
| 27 |
+
$$
|
| 28 |
+
A _ { h } ( X ) = \operatorname { s o f } \operatorname { t m a x } \left( \frac { Q _ { h } } { \sqrt { d } } K _ { h } ^ { \top } \right) V _ { h } , \left\{ Q _ { h } = X W _ { h } ^ { Q } , K _ { h } = X W _ { h } ^ { K } , V _ { h } = X W _ { h } ^ { V } \right\} \in \mathbb { R } ^ { L \times d } ,
|
| 29 |
+
$$
|
| 30 |
+
|
| 31 |
+
and the attention vector from each head $A _ { h } ( X )$ is concatenated and projected:
|
| 32 |
+
|
| 33 |
+
$$
|
| 34 |
+
\mathrm { i } \mathrm { H e a d A t t u } ( X ) = [ A _ { 1 } ( X ) , A _ { 2 } ( X ) , \ldots , A _ { H } ( X ) ] W ^ { o } , W ^ { o } \in \mathbb { R } ^ { H \times d } .
|
| 35 |
+
$$
|
| 36 |
+
|
| 37 |
+
Mult (2) Here $H$ is the total number of heads per Transformer layer. In this paper, we focus on how to approximate full attention within each head of multi-head attention. For ease of notation, we drop the head index $h$ whenever possible, and use lower-case letters $x _ { i } , q _ { i } , k _ { i } , v _ { i } \in \mathbb { R } ^ { d }$ to denote rows in
|
| 38 |
+
|
| 39 |
+

|
| 40 |
+
Figure 1: Attention matrices of several instantiations of Combiner in the autoregressive setting. We transform several sparse attention patterns: Fixed (A) [14], Logsparse (B) [18] and Axial (C) [20] to Combiner-Fixed (D), Combiner-Logsparse (E) and Combiner-Axial (F). Combiner approximates the conditional expectation (3) with a combination of direct expectation (blue) and local expectation (yellow). Our instantiations (D)(E)(F) achieves full attention with the same sub-quadratic complexity.
|
| 41 |
+
|
| 42 |
+
$X , Q , K , V$ respectively, which corresponds to a location $i$ in the original sequence of length $L$ . We use $[ n ]$ to denote the set of positive integers $\{ 1 , 2 , \ldots , n \}$ .
|
| 43 |
+
|
| 44 |
+
For a position $i \in [ L ]$ , the attention formulation (1) can be viewed as conditional expectation of rows in $V$ . Specifically, since softmax outputs a probability distribution, we can rewrite (1) as
|
| 45 |
+
|
| 46 |
+
$$
|
| 47 |
+
A ( x _ { i } ) = \mathbb { E } _ { p ( j | i ) } \left[ v _ { j } \right] , \qquad p ( j | i ) = \frac { 1 } { Z \left( x _ { i } \right) } \exp \left( \frac { q _ { i } } { \sqrt { d } } k _ { j } ^ { \top } \right) ,
|
| 48 |
+
$$
|
| 49 |
+
|
| 50 |
+
where $p ( j | i )$ denotes the conditional probability at position $j$ given the token at position $i$ and the partition function $\begin{array} { r } { Z \left( x _ { i } \right) = \sum _ { j \in \Omega _ { i } } \exp \left( \frac { q _ { i } } { \sqrt { d } } k _ { j } ^ { \top } \right) } \end{array}$ over support $\Omega _ { i }$ . The support $\Omega _ { i }$ of $p \left( j | i \right)$ defines the set of valid locations that the $i$ -th token can attend to. For instance, the support set in autoregressive language modeling (LM) consists of all previous tokens, i.e., $\Omega _ { i } ^ { \mathrm { L M } } = [ i ] ^ { 2 }$ ; in masked i language modeling (MLM) the support consists of all tokens in the sequence, i.e., $\Omega _ { i } ^ { \mathrm { M L M } } = [ L ]$ . That is, $\bar { \Omega } _ { i } ^ { \mathrm { L M } }$ and $\Omega _ { i } ^ { \mathrm { M L M } }$ represent the full attention capability respectively in the LM and MLM setting.
|
| 51 |
+
|
| 52 |
+
# 3 Combiner: Full Attention via Structured Conditional Expectation
|
| 53 |
+
|
| 54 |
+
The complexity of $p \left( j | i \right)$ is the bottleneck of the computation for $A \left( x _ { i } \right)$ . Generally, in existing sparse transformers, the support of $p \left( j | i \right)$ is sparsified to reduce the computation and memory complexity, e.g., $\Omega _ { i } ^ { \mathrm { S p a r s e } } \subsetneq \Omega _ { i } ^ { \mathrm { L M } }$ for LM and $\Omega _ { i } ^ { \mathrm { S p a r s e } } \subsetneq \Omega _ { i } ^ { \mathrm { M L M } }$ for MLM, but this can lead to either reduced capacity or limited applicability. We defer detailed discussion of the full capacity of the model to Appendix A. In this section we introduce the Combiner, which achieves $\Omega _ { i } ^ { \mathrm { C o m b i n e r } } = \Omega _ { i } ^ { \mathrm { L M } }$ for LM and $\Omega _ { i } ^ { \mathrm { C o m b i n e r } } = \Omega _ { i } ^ { \mathrm { M L M } }$ for MLM, while still maintaining sub-quadratic computation and memory cost. Below we denote $\Omega _ { i }$ as the support for full attention if there is no ambiguity or need to distinguish between LM or MLM. We introduce the main design framework in Section 3.1 and possible parameterizations in Section 3.2. Then in Section 3.3 we analyze the trade-off of Combiner.
|
| 55 |
+
|
| 56 |
+
# 3.1 Local Factorization for Conditional Expectation
|
| 57 |
+
|
| 58 |
+
The main idea of Combiner is to exploit a hierarchical structure for conditional probability modeling in (3), which provides the opportunity for reducing computation complexity while maintaining the
|
| 59 |
+
|
| 60 |
+
same support. Specifically, we introduce support variables $\Omega _ { i } ^ { r }$ , for $r = 0 , \ldots , n _ { i }$ and $i \in [ L ]$ . The support variables are disjoint, i.e., $\Omega _ { i } ^ { r } \cap \Omega _ { i } ^ { s } = \emptyset , \forall r \neq s$ , and $\cup _ { r = 0 } ^ { n _ { i } } \Omega _ { i } ^ { r } = \Omega _ { i }$ . Then we can factorize $p ( j | i )$ as
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
p ( j | i ) = \sum _ { r = 0 } ^ { n _ { i } } p ( j , \Omega _ { i } ^ { r } | i ) = \sum _ { r = 0 } ^ { n _ { i } } p ( j | \Omega _ { i } ^ { r } , i ) p ( \Omega _ { i } ^ { r } | i ) = p ( j | \Omega _ { i } ^ { r _ { j } } , i ) p ( \Omega _ { i } ^ { r _ { j } } | i ) ,
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
where $r _ { j }$ denotes the index of the support to which $j$ belongs. The last equation arises from the fact that the $\Omega _ { i } ^ { r }$ are disjoint from each other $( \Omega _ { i } ^ { r } \cap \Omega _ { i } ^ { s } = \emptyset , \forall r \neq s )$ . Therefore, there is only one support, $\Omega _ { i } ^ { r _ { j } }$ , containing $j$ . The remaining terms, where $j \notin \Omega _ { i } ^ { r }$ for $r \neq r _ { j }$ , are all zero since $p \left( j | \Omega _ { i } ^ { r } , i \right) = 0$
|
| 67 |
+
|
| 68 |
+
Furthermore, assume $\Omega _ { i } ^ { r _ { j } }$ is a sufficient statistic, i.e., $j$ and $i$ are independent given $\Omega _ { i } ^ { r _ { j } }$ , we obtain
|
| 69 |
+
|
| 70 |
+
$$
|
| 71 |
+
p ( j | i ) = p ( j | \Omega _ { i } ^ { r _ { j } } ) p ( \Omega _ { i } ^ { r _ { j } } | i ) .
|
| 72 |
+
$$
|
| 73 |
+
|
| 74 |
+
Given the partition $\left\{ \Omega _ { i } ^ { r } \right\} _ { r = 0 } ^ { n _ { i } }$ , the attention form in (3) can be rewritten as
|
| 75 |
+
|
| 76 |
+
$$
|
| 77 |
+
\begin{array} { r c l } { A \left( \boldsymbol { x } _ { i } \right) } & { = } & { \mathbb { E } _ { p ( \boldsymbol { j } | i ) } \left[ \boldsymbol { v } _ { j } \right] = \displaystyle \sum _ { r = 0 } ^ { n _ { i } } \sum _ { j \in \Omega _ { i } ^ { r } } p \left( \boldsymbol { j } , \Omega _ { i } ^ { r } | i \right) \boldsymbol { v } _ { j } } \\ & { = } & { \displaystyle \sum _ { j \in \Omega _ { i } ^ { 0 } } \tilde { p } ( \boldsymbol { j } | i ) \boldsymbol { v } _ { j } + \sum _ { r = 1 } ^ { n _ { i } } p ( \Omega _ { i } ^ { r } | i ) \underbrace { \left( \sum _ { j \in \Omega _ { i } ^ { r } } p ( \boldsymbol { j } | \Omega _ { i } ^ { r } ) \boldsymbol { v } _ { j } \right) } _ { j \in \Omega _ { i } ^ { r } } , } \end{array}
|
| 78 |
+
$$
|
| 79 |
+
|
| 80 |
+
where we consider direct attention in partition $\Omega _ { i } ^ { 0 }$ and apply the local factorization (5) to the partition $r = 1 , \ldots , n _ { i }$ . Here $\tilde { p } ( j | i ) \propto p ( j | i )$ but with different normalization constants, which will be explained below. We refer to this model as Combiner since the structured attention (7) combines the direct expectation of $\Omega _ { i } ^ { 0 }$ and multiple local expectations via $p ( j | \Omega _ { i } ^ { r } )$ and $p ( \Omega _ { i } ^ { r } | i )$ to form the final conditional expectation.
|
| 81 |
+
|
| 82 |
+
Equivalently, we can also rewrite the structured attention (7) as
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
\begin{array} { r } { A ( x _ { i } ) = \sum _ { j \in \Omega _ { i } } \left[ \mathbb { I } ( j \in \Omega _ { i } ^ { 0 } ) \tilde { p } ( j | i ) + \displaystyle \sum _ { r = 1 } ^ { n _ { i } } \mathbb { I } ( j \in \Omega _ { i } ^ { r } ) { p } ( j | \Omega _ { i } ^ { r } ) { p } ( \Omega _ { i } ^ { r } | i ) \right] v _ { j } , } \end{array}
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
where $\mathbb { I } ( \cdot )$ is a binary indicator function. After reordering, one can see from (8) that we obtain the effective conditional probability $q ( j | i )$ that tries to approximate the original $p ( j | i )$ . Each probability term depends on both current location $i$ and other location $j$ , and the expectation is still obtained with respect to a valid conditional probability (non-negative and sums up to 1 over $\Omega _ { i }$ ).
|
| 89 |
+
|
| 90 |
+
Requirement for Sub-quadratic Cost. We can immediately see the benefit of this formulation from the fact that the local expectation in (7) is independent of the position $i$ . The full dependence is achieved via the multiplier $p ( \Omega _ { i } ^ { r } | i )$ where $j \in \Omega _ { i } ^ { r }$ . If we can design the local factorization such that:
|
| 91 |
+
|
| 92 |
+
1. the order of number of terms in (7) for $p ( \cdot | i )$ $i ) , \forall i \in [ L ] \colon \sum _ { i = 1 } ^ { L } ( n _ { i } + | \Omega _ { i } ^ { 0 } | )$ is sub-quadratic; and 2. let $\mathcal { U } = \{ \Omega _ { i } ^ { r } \} _ { i \in [ L ] , r \in [ 1 , n _ { i } ] }$ be the unique set of partitions used for local expectation calculation, then the order of $| \mathcal { U } |$ (i.e., the number of unique partitions in $\mathcal { U }$ ) is sub-quadratic; 3. the order of total number of unique calculations of local expectation across all locations in (7), $\textstyle \sum _ { \Omega \in { \mathcal { U } } } | \Omega |$ is sub-quadratic;
|
| 93 |
+
|
| 94 |
+
then one can see that the overall computation and memory cost will be sub-quadratic with full attention support $\Omega _ { i } ^ { \mathrm { C o m b i n e r } } = \Omega _ { i } , \forall i \in \overline { { [ L ] } }$ . We will discuss in detail in Section 4 how to instantiate such a principle by drawing inspiration from existing sparse transformers, and how to convert them into a full attention model almost for free with identical asymptotic complexity.
|
| 95 |
+
|
| 96 |
+
Remark (Further Hierarchical Decomposition): We introduce the local decomposition with a one
|
| 97 |
+
layer partition of support of $p ( \cdot | i )$ for simplicity. In fact, such local decompositions can be stacked
|
| 98 |
+
furthesubset roduces a partition tre, and consider local dec Specificmposition $\Omega _ { i } ^ { r }$ $\left\{ \Omega _ { i } ^ { r k } \right\} _ { k = 1 } ^ { n _ { r } }$ $p ( j , \Omega _ { i } ^ { r } | i ) = p ( j | \Omega _ { i } ^ { r k _ { j } } , i ) p ( \Omega _ { i } ^ { r k _ { j } } | \Omega _ { i } ^ { r } , i ) p ( \Omega _ { i } ^ { r } | i )$ $k _ { j }$ $j$ of $p ( j | i )$ , which can also be plugged to (6) and yield a new full attention formulation.
|
| 99 |
+
|
| 100 |
+
# 3.2 Parameterizing Conditional Probabilities
|
| 101 |
+
|
| 102 |
+
While we obtained a possible way to speed up the standard Transformer via a combination of direct expectation and local expectations, it is also important to have an efficient design choice for the probability terms in (7), namely $\tilde { p } ( j | i )$ from direct expectation, $p ( j | \Omega _ { i } ^ { r } )$ from local expectation and $\bar { \boldsymbol { p } } ( \Omega _ { i } ^ { r } | i )$ for $r \in [ 1 , n _ { i } ]$ . For simplicity we use the scaled dot-product, which means that we will associate positions $i , j$ and variable sets $\Omega _ { i } ^ { r }$ with the corresponding embedding representation, and thus the probability is proportional to the exponential of the embedding inner products. Specifically:
|
| 103 |
+
|
| 104 |
+
• $\tilde { p } ( j | i )$ : As this term is for the direct expectation, we can let $\begin{array} { r } { \tilde { p } ( j | i ) \propto \exp ( \frac { q _ { i } } { \sqrt { d } } k _ { j } ^ { \top } ) } \end{array}$ , which is the same as vanilla attention (3) but with different normalizations, which will be explained in Equation 9. • $p ( \Omega _ { i } ^ { r } | i )$ : This term aims to capture the joint event probability, i.e., $\begin{array} { r } { p ( \Omega _ { i } ^ { r } | i ) \propto \exp \left( \frac { q _ { i } } { \sqrt { d } } k _ { \Omega _ { i } ^ { r } } ^ { \top } \right) } \end{array}$ . Thus the design choice of $k _ { \Omega _ { i } ^ { r } }$ should make an abstraction of the corresponding support $\Omega _ { i } ^ { r }$ . We find $k _ { \Omega _ { i } ^ { r } } = \operatorname* { m a x } { \mathrm { p o o l i n g } _ { j \in \Omega _ { i } ^ { r } } k _ { j } }$ already provides good empirical results without introducing additional parameters; we can also use DeepSets [32] to obtain such abstraction. • $\bar { p } ( j | \Omega _ { i } ^ { r } )$ : This term is the probability of getting $j$ within this local span $\Omega _ { i } ^ { r }$ . We make $p ( j | \Omega _ { i } ^ { r } ) \propto$ $\exp \left( \frac { q _ { \Omega _ { i } ^ { r } } } { \sqrt { d } } k _ { j } ^ { \top } \right)$ , where we use max pooling or DeepSets over $\{ q _ { j } \} _ { j \in \Omega _ { i } ^ { r } }$ to obtain ${ { q } \ o \Omega _ { i } ^ { r } }$ similarly.
|
| 105 |
+
|
| 106 |
+
Normalizing Probability Terms. The terms in each local expectation $p ( j | \Omega _ { i } ^ { r } )$ , $\forall j \in \Omega _ { i } ^ { r }$ can be normalized within the local span; the direct expectation $\tilde { p } ( j | i )$ and the terms in $p ( \Omega _ { i } ^ { r } | i )$ should be normalized together,
|
| 107 |
+
|
| 108 |
+
$$
|
| 109 |
+
Z ( x _ { i } ) = \sum _ { j \in \Omega _ { i } ^ { ( 0 ) } } \exp \left( \frac { q _ { i } } { \sqrt { d } } k _ { j } ^ { \top } \right) + \sum _ { r = 1 } ^ { n _ { i } } \exp \left( \frac { q _ { i } } { \sqrt { d } } k _ { \Omega _ { i } ^ { r } } ^ { \top } \right) ,
|
| 110 |
+
$$
|
| 111 |
+
|
| 112 |
+
and $Z ( x _ { i } )$ is the normalizing constant when calculating $\tilde { p } ( j | i )$ and $p ( \Omega _ { i } ^ { r } | i )$ .
|
| 113 |
+
|
| 114 |
+
# 3.3 Trade-offs in Combiner
|
| 115 |
+
|
| 116 |
+
Combiner achieves full attention with reduced cost without making explicit sparsity or low-rank assumptions over the attention matrix. However this efficiency gain is not free. In this section we discuss the limitations of the simplification made by Combiner, and provide a simple workaround.
|
| 117 |
+
|
| 118 |
+
Structured Attention Approximation. We obtain the local decomposition (5) under the conditional independence assumption. Therefore, the local expectation in (7) is independent of the position $i$ , this suggests that any two locations $i _ { 1 }$ and $i _ { 2 }$ with $\Omega _ { i _ { 1 } } ^ { r } = \Omega _ { i _ { 2 } } ^ { r } = \Omega$ would have linearly dependent attention scores over the region $\Omega$ . Formally, the probabilities formed by the effective conditional distribution $\begin{array} { r } { \vec { a } ( \Omega ) _ { i _ { 1 } } = \left[ q ( j _ { 1 } | i _ { 1 } ) , q ( j _ { 2 } | i _ { 1 } ) , \dots , q ( j _ { | \Omega _ { i _ { 1 } } ^ { r } | } | i _ { 1 } ) \right] = \frac { p ( \Omega _ { i _ { 1 } } ^ { r } | i _ { 1 } ) } { p ( \Omega _ { i _ { 2 } } ^ { r } | i _ { 2 } ) } \vec { a } ( \Omega ) _ { i _ { 2 } } } \end{array}$ . In other words, the rank of the sub-matrix over the same partition in the resulting attention matrix is 1, therefore, the attention matrix is locally low-rank based on the partition. On the other hand, the direct expectation fully attends to each position in sub-support $\Omega _ { 0 }$ , which ensures the full-rank block. These two attention schemes make the attention matrix of Combiner structured. Compared with the low-rank approximation for attention [26, 28, 30], which is inspired from random features [29] in the kernel community, a structured approximation that exploits both the locally low-rank and full-rank blocks has been proved more powerful theoretically and empirically in large-scale kernel machines [27].
|
| 119 |
+
|
| 120 |
+
Improving Expressiveness Using a Mixture Model. One way to further improve the expressiveness of the local factorization is to use a mixture model. This idea is adapted from the mixture of softmaxs [33] to obtain high-rank softmax layer in language modeling. Let $\omega$ be a certain partition of the support (i.e., collection of $\Omega _ { i } ^ { r }$ ) of $\Omega _ { i }$ , then one can easily use $\begin{array} { r } { A ( x _ { i } ) = \frac { 1 } { M } \sum _ { m = 1 } ^ { M } A ( x _ { i } ; \omega _ { m } ) } \end{array}$ to compute the attention, where each component of the mixture $A ( x _ { i } ; \omega _ { m } )$ is the term (7) using a specific factorization plan $\omega _ { m }$ . Empirically we find two components are already sufficient to improve performance.
|
| 121 |
+
|
| 122 |
+
# 4 Combiner Instantiations
|
| 123 |
+
|
| 124 |
+
In this section we show several local factorization schemes satisfying the requirements in Section 3.1. As we will see, Combiner is able to convert several sparse transformers [14, 18, 20–22] into full
|
| 125 |
+
|
| 126 |
+
attention, with the same order of computation and memory consumption. One can also design other factorization patterns, which can be easily instantiated in Combiner.
|
| 127 |
+
|
| 128 |
+
# 4.1 Combiner-Fixed
|
| 129 |
+
|
| 130 |
+
The Sparse Transformer [14] is one of the most representative variants that can achieve $\mathcal { O } ( L \sqrt { L } )$ computation and memory cost with sparse attention. Here we show how to convert this fixed pattern proposed in [14] (Figure 1(A)) into a factorization plan, and instantiate a full attention variant named the Combiner-Fixed (Figure 1(D)).
|
| 131 |
+
|
| 132 |
+
In the fixed-sparse attention, the support is Ωsparse MLMi $\Omega _ { i } ^ { \mathrm { s p a r s e M L M } } = \{ j : j$ mod $s = 0 \} \cup \{ j : j \equiv i \left( \operatorname { d i v } s \right) \}$ where $s$ is a hyper-parameter, div is integer division, and $j \equiv i$ (div $s$ ) denotes that the quotients of $i$ and $j$ w.r.t. $s$ are the same. In the autoregressive case, $\Omega _ { i } ^ { \mathrm { s p a r s e L M } } = \Omega _ { i } ^ { \mathrm { s p a r s e M L M } } \cap [ i ]$ . Please refer to Figure 1(A) for an illustration of the LM version.
|
| 133 |
+
|
| 134 |
+
Our design of $\omega _ { \mathrm { f i x e d } } ^ { \mathrm { M L M } }$ has the following form:
|
| 135 |
+
|
| 136 |
+
$\Omega _ { i } ^ { 0 } = \left\{ j : j \equiv i \left( \mathrm { d i v } s \right) \right\} , \Omega _ { i } ^ { r } = \left\{ j : j \equiv \left( \mathrm { d i v } s \right) \right\} ,$ div $s = r , j \notin \Omega _ { i } ^ { 0 } \} , \forall r \in [ L \operatorname { d i v } s ] , \forall i \in [ L ]$ (10) where each local expectation is performed in each span of size $s$ , and there are totally $L$ div $s$ spans across all locations. For each position $i \in [ L ]$ , there are $( s + ( L \dim s ) )$ terms in (7) ; the local expectation has (√ $L$ div $s$ ) terms . The overall complexity is √ $\mathcal { O } ( L \cdot ( s + 2 ( L \operatorname { d i v } s ) ) _ { } ^ { }$ ). The optimal $s$ is $\mathcal { O } ( \sqrt { L } )$ , and we can achieve $\mathcal { O } ( L \sqrt { L } )$ computation and memory complexity, which is the same as [14] but here we gain full attention capability in each attention head. For the LM case, we can√ simply have $\omega _ { \mathrm { f i x e d } } ^ { \mathrm { L M } } : \{ \Omega _ { i } ^ { r } \cap [ i ] | \Omega _ { i } ^ { r } \in \omega _ { \mathrm { f i x e d } } ^ { \mathrm { M L M } } \}$ , which has the same $\mathcal { O } ( L \sqrt { L } )$ optimal complexity.
|
| 137 |
+
|
| 138 |
+
# 4.2 Combiner-Logsparse
|
| 139 |
+
|
| 140 |
+
The Logsparse Transformer is proposed in [18] and can theoretically achieve $\mathcal { O } ( L \log L )$ cost. The general idea is to make the size of support $\Omega _ { i } ^ { \mathrm { s p a r s e } }$ no larger than $\lceil \log _ { 2 } i \rceil$ . For the ease of notation, we first define $\mathbf { b i t s } ( n ) = [ b _ { 1 } , b _ { 2 } , \ldots , { \bar { b } } _ { \lceil \log _ { 2 } n \rceil } ]$ to be the binary representation of integer $n$ , with $b _ { t } \in \{ 0 , 1 \}$ the coefficient of basis $2 ^ { t }$ . Thus we have P⌈log2 n⌉t=1 bt ∗ 2t. One of the possible design choices to make Logsparse in the LM case is Ωsparse LMi $\Omega _ { i } ^ { \mathrm { s p a r s e L M } } = \left\{ \mathrm { s u f f } _ { t } : = \sum _ { \tau = t } ^ { \left\lceil \log _ { 2 } i - 1 \right\rceil } b _ { \tau } * 2 ^ { \tau } \right\} _ { t = 1 } ^ { \left\lceil \log _ { 2 } i - 1 \right\rceil } \cup$ $\{ i \}$ , i.e., attend to the location indices that equal to the suffix sum of the weighted bits $( i - 1 )$ , as well as location $i$ itself. This serves as our base sparse version as shown in Figure 1(B).
|
| 141 |
+
|
| 142 |
+
To exploit this scheme in the Combiner framework, we can define $\lceil \log _ { 2 } n \rceil$ non-overlapping supports, where $\Omega _ { i } ^ { r } = [ \mathrm { s u f f } _ { r } ] \setminus [ \mathrm { s u f f } _ { r + 1 } ]$ with the boundary case $\big [ \mathrm { s u f f } _ { [ \log _ { 2 } i - 1 ] + 1 } \big ] = \emptyset$ . Note that for the ease of notation, some of the $\Omega _ { i } ^ { r }$ are empty which will be ignored. In this case, the direct attention set $\Omega _ { i } ^ { 0 }$ includes $\{ i \}$ , as well as $\{ i - 1 \}$ when $i$ is an even number. Such a factorization leads to Combiner-Logsparse, as shown in Figure 1(E). From the Figure, we observe that in total we will have span summaries for every $2 , 4 , 8 , \ldots , 2 ^ { \lfloor \log _ { 2 } L \rfloor }$ locations, resulting in total $\scriptstyle \sum _ { t = 1 } ^ { \lfloor \log _ { 2 } L \rfloor } \lfloor { \frac { L } { 2 ^ { t } } } \rfloor$ or $i$ will select at most non-overlapping spans to cover the full support $\Omega _ { i }$ , and thus, the total cost will be $\mathcal { O } \left( L \log L \right)$ . We leave the design of MLM case to Appendix B.
|
| 143 |
+
|
| 144 |
+
# 4.3 Combiner-Axial
|
| 145 |
+
|
| 146 |
+
The Axial Transformer [20] builds the attention along each axis of the input data. Without loss of generality, we focus on 2D case where the input sequence is reshaped into a matrix of size $n \times m = L$ . Specifically, the location $i$ in original sequence will be in $r o w _ { i } = ( i - 1 )$ div $m + 1$ and $c o l _ { i } = ( i - 1 )$ mod $m + 1$ . We show how to simply enable full attention with factorization on 2D matrix, hence Combiner-Axial.
|
| 147 |
+
|
| 148 |
+
The sparse axial has Ωsparse MLM $\Omega _ { i } ^ { \mathrm { s p a r s e ~ M L M } } = \{ j : j - 1 \equiv i - 1 ( { \bmod { m } } ) \} \cup \{ j : j - 1 \equiv i - 1 ( \operatorname { d i v } m ) \}$ , and Ωsparse LMi $\Omega _ { i } ^ { \mathrm { s p a r s e L M } } = \Omega _ { i } ^ { \mathrm { s p a r s e M L M } } \cap [ i ]$ , which all have at most $O ( m + n )$ entries for each $i$ , as illustrated in Figure 1(C). We propose several factorization schemes to make it an attention with full support.
|
| 149 |
+
|
| 150 |
+
$\omega _ { \mathrm { a x i a l - v e r t i c a l } } ^ { \mathrm { L M } }$ : $\Omega _ { i } ^ { 0 } = \Omega _ { i } ^ { \mathrm { s p a r s e L M } }$ , and corre $\Omega _ { i } ^ { r } = \left\{ j : j \equiv r ( { \bmod { m } } ) \right\} \cap \left[ i - c o l _ { i } \right]$ , for ere w $r \in [ m ] \setminus \{ c o l _ { i } \}$ . Asg to $\Omega _ { i } ^ { r }$ $r$ $r o w _ { i }$
|
| 151 |
+
|
| 152 |
+

|
| 153 |
+
Figure 2: Attention matrices and sequence being attended (e.g., a $3 { \tt x } 4$ image) of vertical and horizontal variants of Combiner-Axial. Blue and yellow correspond to direct and local attention respectively for location $i$ (purple). Locations connected by arrows correspond to the same support $\Omega ^ { r }$ .
|
| 154 |
+
|
| 155 |
+
obtain the abstraction. To obtain such abstraction for all the locations, we can leverage the cummax operator for each column to efficiently obtain the prefix-max.
|
| 156 |
+
|
| 157 |
+
$\omega _ { \mathrm { a x i a l - h o r i z o n t a l } } ^ { \mathrm { L M } }$ : similar as $\omega _ { \mathrm { a x i a l } }$ -vertical except that each $\Omega _ { i } ^ { r }$ summarizes the row $r$ before $r o w _ { i }$ and
|
| 158 |
+
excludes $c o l _ { i }$ (Figure 2(B)).
|
| 159 |
+
• $\omega _ { \mathrm { a x i a l - r o w m a j o r } } ^ { \mathrm { L M } }$ : $\Omega _ { i } ^ { 0 } = \{ j : j - 1 \equiv i - 1 ( \operatorname { d i v } m ) \} \cap [ i ]$ , i.e., elements in the same row are directly
|
| 160 |
+
attended, while $\Omega _ { i } ^ { r } = \{ j : j \equiv r ( \operatorname { d i v } m ) \} \cap [ i - c o l _ { i } ]$ captures the rows before $r o w _ { i }$ . This structure is similar to Combiner-Fixed, except for the way that the abstraction (and thus the local expectation) is computed. Combiner-Fixed computes the abstraction only based on $r$ of partition $\Omega _ { i } ^ { r }$ , where
|
| 161 |
+
ωaxial-rowmajor depends on both $r$ and the column $c o l _ { i }$ (Figure 1(F)).
|
| 162 |
+
|
| 163 |
+
In all cases above, the cost is similar to the Axial Transformer [20], which is $O ( L \sqrt { L } )$ if we reshape the sequence to a 2D matrix with $n , m = O ( { \sqrt { L } } )$ . We defer the MLM case to Appendix C.
|
| 164 |
+
|
| 165 |
+
# 4.4 Combiner-Learnable
|
| 166 |
+
|
| 167 |
+
Inspired by the Reformer [21] and Routing Transformer [22], we can also learn the factorization plan $\omega$ from the data. We illustrate this with Routing Transformer and provide a way to enable full attention in Routing Transformer following the Combiner principle.
|
| 168 |
+
|
| 169 |
+
For a specific layer, suppose we have a learned disjoint region (or cluster in Routing Transformer) $\left\{ \Omega ^ { r } \right\} _ { r = 1 } ^ { n }$ where $\cup _ { r } \Omega ^ { r } = [ L ]$ . In Routing Transformer, we simply have $\Omega _ { i } ^ { \mathrm { s p a r s e M L M } } = \mathbf { \bar { \Omega } } ^ { r _ { i } }$ where $\Omega ^ { r _ { i } }$ denotes the region where position $i$ belongs to. To define the Combiner factorization, we let
|
| 170 |
+
|
| 171 |
+
$$
|
| 172 |
+
\begin{array} { r } { \omega _ { \mathrm { r o u t i n g ~ M L M } } : \Omega _ { i } ^ { 0 } = \Omega ^ { r _ { i } } , \quad \Omega _ { i } ^ { r } = \Omega ^ { r } \setminus \Omega _ { i } ^ { 0 } , \quad \forall r \in [ n _ { i } ] . } \end{array}
|
| 173 |
+
$$
|
| 174 |
+
|
| 175 |
+
Note that $n _ { i } = n$ (i.e., number of learned clusters) for all locations. The above factorization can only work for MLM. LM requires the following definition:
|
| 176 |
+
|
| 177 |
+
$$
|
| 178 |
+
\omega _ { \mathrm { r o u t i n g \ L M } } : \Omega _ { i } ^ { 0 } = \Omega ^ { r _ { i } } \cap [ i ] , \quad \Omega _ { i } ^ { r } = \left( \Omega ^ { r } \setminus \Omega _ { i } ^ { 0 } \right) \cap [ i ] , \quad \forall r \in [ n _ { i } ] .
|
| 179 |
+
$$
|
| 180 |
+
|
| 181 |
+
In general, both LM and MLM can have sub-quadratic cost when $n = O ( { \sqrt { L } } )$ . However, routing variants (including the Routing Transformer) require a gather operation, which can be slow on TPUs (see illustration in Appendix D).
|
| 182 |
+
|
| 183 |
+
# 5 Experimental Evaluation
|
| 184 |
+
|
| 185 |
+
We evaluate Combiner with different full attention patterns on both autoregressive and bidirectional sequence modeling tasks, covering a wide range of input data from images to texts. All tasks considered involve long sequences for up to 12,000 in length, some of which prevent the applicability of the vanilla transformer. We compare Combiner with state-of-the-art Transformers. We also perform a series of ablation studies where all of the models being compared use the exact same architecture that only differ in the attention module, avoiding individual tricks employed in the original works (e.g., using both learnable and fixed patterns in Routing Transformer [22]). Details to reproducing all experimental results can be found in Appendix E.
|
| 186 |
+
|
| 187 |
+
Table 1: Ablation results in Bits per Dimension (Bits/Dim) on CIFAR-10 and ImageNet-64.
|
| 188 |
+
|
| 189 |
+
<table><tr><td>Model</td><td>Layers</td><td>CIFAR-10</td><td>ImageNet-64</td></tr><tr><td>Reformer [21]</td><td>6</td><td>1</td><td>3.740</td></tr><tr><td>Performer [28]</td><td>6</td><td>3.335</td><td>3.719</td></tr><tr><td>Logsparse [18]</td><td>6</td><td>4.253</td><td>4.351</td></tr><tr><td>Combiner-Logsparse (Ours)</td><td>6</td><td>3.366</td><td>3.795</td></tr><tr><td>Fixed [14]</td><td>6</td><td>3.408</td><td>3.696</td></tr><tr><td>Combiner-Fixed (Ours)</td><td>6</td><td>3.321</td><td>3.654</td></tr><tr><td>Axial [20]</td><td>6</td><td>3.666</td><td>4.032</td></tr><tr><td>Combiner-Axial (Ours)</td><td>6</td><td>3.050</td><td>3.585</td></tr><tr><td>Combiner-Mixture (Ours)</td><td>6</td><td>3.040</td><td>3.585</td></tr><tr><td>Reformer r[21]</td><td>12</td><td>1</td><td>3.710</td></tr><tr><td>Performer [28]</td><td>12</td><td>3.310</td><td>3.636</td></tr><tr><td>Routing Transformer [22]</td><td>12</td><td>2.950</td><td>1</td></tr><tr><td>Combiner-Mixture (Ours)</td><td>12</td><td>2.885</td><td>3.504</td></tr></table>
|
| 190 |
+
|
| 191 |
+
# 5.1 Autoregressive Sequence Modeling
|
| 192 |
+
|
| 193 |
+
In this subsection, we first perform density estimation on text and image using Combiner.
|
| 194 |
+
|
| 195 |
+
# 5.1.1 Language Modeling
|
| 196 |
+
|
| 197 |
+
For language modeling, we focus on the Wiki-40BEn dataset [34], which consists of clean Wikipedia pages in English. We use a sentence piece model with vocabulary size 32K to tokenize the text and measure the perplexity at the sentence piece level. To ensure fair comparison, all models being compared again have the same number of layers and hidden sizes, are are implemented under the same code base.
|
| 198 |
+
|
| 199 |
+
Table 2 shows the results of the comparison. As we can see, under $2 \mathrm { k }$ sequence length, Combiner variants are consistently better than their corresponding baselines, and are very close to the standard Transformer. When sequence length goes to 8k, the standard Transformer runs out of memory, whereas Combiner continues to achieve improved perplexity, surpassing the result of Transformer- $2 \mathrm { k }$ . If we further use DeepSets to calculate the summarization terms ${ { q } \Omega _ { i } ^ { r } }$ and $k _ { \Omega _ { i } ^ { r } }$ , we may further achieve lower perplexity as shown in Table 3.
|
| 200 |
+
|
| 201 |
+
Table 2: LM Perplexity on Wiki-40B (Main).
|
| 202 |
+
|
| 203 |
+
<table><tr><td>Model</td><td>Perplexity</td></tr><tr><td>Transformer-2k[1]</td><td>17.26</td></tr><tr><td>Performer-2k [28]</td><td>19.66</td></tr><tr><td>Routing-2k [22]</td><td>20.85</td></tr><tr><td>Fixed-2k [14] Combiner-Fixed-2k (Ours)</td><td>18.04 17.70</td></tr><tr><td>Axial-2k [20] Combiner-Axial-2k (Ours)</td><td>20.82</td></tr><tr><td>Combiner-Fixed-8k (Ours) Combiner-Axial-8k (Ours)</td><td>17.56 16.60</td></tr></table>
|
| 204 |
+
|
| 205 |
+
Table 3: LM Perplexity on Wiki-40B (Ablation).
|
| 206 |
+
|
| 207 |
+
<table><tr><td>Model</td><td>Perplexity</td></tr><tr><td>Transformer-2k [1]</td><td>17.26</td></tr><tr><td>Combiner-DeepSets-Max-8k (Ours)</td><td>16.29</td></tr><tr><td>Combiner-DeepSets-Mean-8k(Ours)</td><td>16.48</td></tr><tr><td>Combiner-Max-8k(Ours)</td><td>16.60</td></tr><tr><td>Combiner-Mean-8k (Ours)</td><td>16.54</td></tr></table>
|
| 208 |
+
|
| 209 |
+
# 5.1.2 Image Generative Models
|
| 210 |
+
|
| 211 |
+
CIFAR-10. We first perform a sanity check where we compare sparse attention baselines against Combiner with full attention under the same architecture on the CIFAR-10 dataset. The sequence length is 3072. For all the methods, we use a same 6-layer transformer with 8 attention heads and 512 embedding dimensions. We train all models for $5 0 0 \mathrm { k }$ iterations using batch size 32 on TPU v2. As shown in Table 1, given the same model architecture, Combiner-X performs significantly better than the base model $\mathbf { X }$ under the bits per dimension (BPD) metric on the 10,000 test images. In particular, Combiner significantly decreases BPD by 0.887, 0.087, and 0.626 compared to the base models Logsparse, Fixed and Axial, respectively. Note that all of the Combiner variants achieve better performance than the best of the base models. This demonstrates the advantage of Combiner over the baselines given the same 6-layer architecture. We observe a similar trend under a 12-layer architecture.
|
| 212 |
+
|
| 213 |
+
<table><tr><td>CIFAR-10</td><td>Bits/Dim</td></tr><tr><td>PixelCNN[15]</td><td>3.03</td></tr><tr><td>PixelCNN++ [36]</td><td>2.92</td></tr><tr><td>Image Transformer [16]</td><td>2.90</td></tr><tr><td>PixelSNAIL [37]</td><td>2.85</td></tr><tr><td>Sparse Transformer [14]</td><td>2.80</td></tr><tr><td>Combiner-Axial (ours)</td><td>2.77</td></tr></table>
|
| 214 |
+
|
| 215 |
+
Table 4: Bits per Dimension (Bits/Dim) on CIFAR-10 and ImageNet-64.
|
| 216 |
+
|
| 217 |
+
<table><tr><td>ImageNet 64x64</td><td>Bits/Dim</td></tr><tr><td>PixelCNN[15]</td><td>3.57</td></tr><tr><td>Parallel Multiscale [38] Glow [39]</td><td>3.70 3.81</td></tr><tr><td>SPN [40]</td><td>3.52</td></tr><tr><td>Sparse Transformer[14]</td><td>3.44</td></tr><tr><td>Axial Transformer[20]</td><td>3.44</td></tr><tr><td>Routing Transformer [22] Combiner-Axial (ours)</td><td>3.43 3.42</td></tr></table>
|
| 218 |
+
|
| 219 |
+
Following the 128-layer architecture in Child et al. [14], we apply Combiner-Axial and achieve state-of-the-art performance, 2.77 BPD on CIFAR-10, as listed in Table 4. We run all of the models in Table 4 without data augmentation [35].
|
| 220 |
+
|
| 221 |
+
ImageNet-64. We also evaluate performance under the autoregressive setting on ImageNet-64, where sequence length is 12,288. We first perform the same analysis as CIFAR-10 and compare Combiner-X with the baselines using the same model architecture. As shown in Table 1, Combiner consistently outperforms the baselines with the same attention pattern. We further apply CombinerAxial to a 30-layer Transformer, which achieves state-of-the-art performance on density estimation on ImageNet-64, demonstrating the effectiveness of full attention achieved by Combiner.
|
| 222 |
+
|
| 223 |
+
# 5.2 Bidirectional Sequence Modeling
|
| 224 |
+
|
| 225 |
+
Besides autoregressive tasks, we also evaluate Combiner on a set of standard bidirectional tasks to show the general applicability of the method.
|
| 226 |
+
|
| 227 |
+
# 5.2.1 Long-Range Arena
|
| 228 |
+
|
| 229 |
+
Long-Range Arena (LRA) is a unified benchmark [31] for probing the capability of efficient transformers on handling long sequences. We evaluate our models on five tasks from LRA: ListOps, Text Classification, Retrieval, Image Classification and Pathfinder. All of the tasks are sequence-level multi-class classification. Please refer to the original LRA paper for more details.
|
| 230 |
+
|
| 231 |
+
Table 5: Experimental results on Long-Range Arena benchmark.
|
| 232 |
+
|
| 233 |
+
<table><tr><td>Model</td><td>ListOps</td><td>Text</td><td>Retrieval</td><td>Image</td><td>Pathfinder</td><td>Avg</td></tr><tr><td>Chance Transformer Local Attention</td><td>10.00 36.38 15.95</td><td>50.00 64.27 52.98</td><td>50.00 57.46 53.39</td><td>10.00 42.44 41.46</td><td>50.00 88.81 84.64</td><td>34.00 57.87 49.68</td></tr><tr><td>Sparse TRans. Longformer Linformer Reformer Sinkhorn Trans. Synthesizer BigBird Linear Trans.</td><td>35.78 36.03 35.49 36.30 34.20 36.50 37.08 17.15</td><td>63.58 62.85 53.94 56.10 61.20 61.68 64.02 65.90</td><td>59.59 56.89 52.27 53.40 53.83 54.67 59.29 53.09</td><td>44.24 42.22 38.56 38.07 41.23 41.61 40.83 42.34</td><td>83.90 86.68 86.17 79.18 73.36 81.61 86.75 88.13</td><td>57.42 56.93 53.28 52.61 52.76 55.21 57.59 53.32</td></tr><tr><td>Performer Combiner-Fixed Combiner-Axial</td><td>36.00 36.65 36.15</td><td>65.40 64.99 64.36</td><td>53.82 59.81 56.10</td><td>42.77 41.67 41.33</td><td>88.76 88.59 88.43</td><td>57.35 58.34 57.27</td></tr></table>
|
| 234 |
+
|
| 235 |
+
As shown in Table 5, Combiner is able to match the performance of vanilla Transformer and achieves even better performance in some tasks. Following the protocol of LRA, all methods use the same architecture and hyperparameters for a controllable comparison. We use the numbers from Tay et al. [31] for all tasks except for Pathfinder. Since we were unable to reproduce the original Pathfinder results using the default setup in LRA Github repository, we rerun all the baselines using Pathfinderinter configuration to conduct fair comparison. However, as the benchmark is still of small-scale and the LRA official website discourages hyperparameter tuning, Table 5 should be treated as results for the test bench of expressiveness compared to vanilla Transformer.
|
| 236 |
+
|
| 237 |
+
Table 6: MLM perplexity on C4 dataset.
|
| 238 |
+
|
| 239 |
+
<table><tr><td>Model</td><td>Perplexity</td></tr><tr><td>Transformer-2k [1]</td><td>4.552</td></tr><tr><td>BigBird-2k [41]</td><td>4.696</td></tr><tr><td>Performer-2k [28]</td><td>10.940</td></tr><tr><td>Fixed-2k [14]</td><td>5.279</td></tr><tr><td>Combiner-Fixed-2k (Ours)</td><td>5.170</td></tr><tr><td>Axial-2k [20]</td><td>5.370</td></tr><tr><td>Combiner-Axial-2k (Ours)</td><td>4.809</td></tr><tr><td>Routing-2k [22] Combiner-Routing-2k (Ours)</td><td>6.703 6.539</td></tr><tr><td>BigBird-8k [41]</td><td></td></tr><tr><td></td><td>4.542</td></tr><tr><td>Combiner-Axial-8k(Ours)</td><td>4.190</td></tr><tr><td>Combiner-Fixed-8k (Ours)</td><td>4.139</td></tr></table>
|
| 240 |
+
|
| 241 |
+

|
| 242 |
+
Figure 3: We measure the inference runtime and memory usage for eight models. Overall Combiner has similar speed with Performer and its sparse counterpart but Vanilla Transformer quickly goes OOM when sequence length grows.
|
| 243 |
+
|
| 244 |
+
# 5.2.2 Masked Language Modeling
|
| 245 |
+
|
| 246 |
+
As the core element of BERT langauge pretraining [5], masked language modeling (MLM) refers to the task of reconstructing tokens that are randomly masked out in the input sequence. As with the LM task, we use perplexity as the main metric, which correlates relatively well with down-stream task performance. Specifically, we use the large scale C4 dataset [8] for training and evaluation, and consider different sequence lengths. Following the original BERT setup, we mask out $15 \%$ of the tokens in each input sequence. The comparison is summarized in Table 6. Similar to the LM result, different Combiner variants consistently outperform their corresponding baselines under $2 \mathrm { k }$ sequence length. However, apart from the standard Transformer, Combiner-2k also falls behind BigBird- $2 \mathrm { k }$ . We conjecture that this is related to the special design in BigBird such as all tokens can always attend to the $< \mathsf { c l s } >$ token directly, which is only applicable in non-causal problems. That said, when we further increase sequence length to 8k, the standard Transformer runs into OOM issue, whereas Combiner not only outperforms BigBird but also substantially surpasses Transformer-2k. This suggests that Combiner can truly benefit from scaling learning to longer sequence lengths.
|
| 247 |
+
|
| 248 |
+
# 5.3 Runtime and Memory Usage of Combiner
|
| 249 |
+
|
| 250 |
+
Here we evaluate the inference runtime and memory usage of five baselines – Transformer, Performer, BigBird, Sparse-Fixed and Sparse-Axial, as well as three variants of Combiner– Combiner-Fixed, Combiner-Axial and Combiner-Mixture. We run inference of all the models on a TPU v3-16 (16 cores $\mathrm { ~ x ~ } 1 6 6 \mathrm { B }$ ) with batch size 16, and we test sequences of length from $2 ^ { 1 0 }$ to $2 ^ { 1 4 }$ . As shown in Figure 3, Combiner instantiations achieve comparable runtime and memory usage with their sparse counterpart and Performer. Note Combiner achieves much better empirical performance than the sparse models and Performer. Combiner-Mixture has the same asymptotic complexity with Combiner-Fixed and Combiner-Axial, however, since it requires running two partition plans, it is slower than Combiner-Fixed and Combiner-Axial. Due to the gather operation required by the random attention which is not very TPU/GPU friendly, BigBird is very computationally expensive. And the Transformer model quickly runs out of memory when sequence length increases.
|
| 251 |
+
|
| 252 |
+
# 6 Conclusion
|
| 253 |
+
|
| 254 |
+
Inspired by the conditional expectation view of attention mechanism, we propose Combiner, a drop-in replacement of the attention module. By introducing structured decomposition to the conditional probability, Combiner achieves full attention capability while maintaining sub-quadratic computational and memory cost. We instantiate several Combiner variants converting existing sparse transformers to full attention. Combiner achieves state-of-the-art performance on both autoregressive and bidirectional tasks for image and text modeling, showing benefits in both modeling effectiveness and runtime efficiency. Future work includes additional factorization pattern designs, as well as applications of Combiner in domains like bioinformatics and speech.
|
| 255 |
+
|
| 256 |
+
# Acknowledgments and Disclosure of Funding
|
| 257 |
+
|
| 258 |
+
We would like to thank Richard Song and David Dohan for the help on introducing Performer codebase and experiment configurations, Yi Tay and Mostafa Dehghani for clarifications on the LRA benchmark, James Lee-Thorp, Joshua Ainslie, and Ilya Eckstein for clarification on their LRA experiment results, Adams Yu for performing internal paper review and helpful suggestions. We also gratefully acknowledge the support of DARPA under Nos. HR00112190039 (TAMI), N660011924033 (MCS); ARO under Nos. W911NF-16-1-0342 (MURI), W911NF-16-1-0171 (DURIP); NSF under Nos. OAC-1835598 (CINES), OAC-1934578 (HDR), CCF-1918940 (Expeditions), IIS-2030477 (RAPID), NIH under No. R56LM013365; Stanford Data Science Initiative, Wu Tsai Neurosciences Institute, Chan Zuckerberg Biohub, Amazon, JPMorgan Chase, Docomo, Hitachi, Intel, JD.com, KDDI, NVIDIA, Dell, Toshiba, Visa, and UnitedHealth Group. Hongyu Ren is supported by the Masason Foundation Fellowship and the Apple PhD Fellowship. Jure Leskovec is a Chan Zuckerberg Biohub investigator.
|
| 259 |
+
|
| 260 |
+
# References
|
| 261 |
+
|
| 262 |
+
[1] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems (NeurIPS), 2017.
|
| 263 |
+
[2] Mia Xu Chen, Orhan Firat, Ankur Bapna, Melvin Johnson, Wolfgang Macherey, George Foster, Llion Jones, Niki Parmar, Mike Schuster, Zhifeng Chen, et al. The best of both worlds: Combining recent advances in neural machine translation. In Annual Meeting of the Association for Computational Linguistics (ACL), 2018.
|
| 264 |
+
[3] 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. In Advances in Neural Information Processing Systems (NeurIPS), 2020.
|
| 265 |
+
[4] Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Ruslan Salakhutdinov, and Quoc V Le. Xlnet: Generalized autoregressive pretraining for language understanding. In Advances in Neural Information Processing Systems (NeurIPS), 2019.
|
| 266 |
+
[5] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Annual Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT), 2019.
|
| 267 |
+
[6] Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. Albert: A lite bert for self-supervised learning of language representations. In International Conference on Learning Representations (ICLR), 2020.
|
| 268 |
+
[7] Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019.
|
| 269 |
+
[8] 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. arXiv preprint arXiv:1910.10683, 2019.
|
| 270 |
+
[9] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations (ICLR), 2021.
|
| 271 |
+
[10] Aditya Kanade, Petros Maniatis, Gogul Balakrishnan, and Kensen Shi. Learning and evaluating contextual embedding of source code. In International Conference on Machine Learning (ICML), 2020.
|
| 272 |
+
[11] Linhao Dong, Shuang Xu, and Bo Xu. Speech-transformer: a no-recurrence sequence-tosequence model for speech recognition. In IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2018.
|
| 273 |
+
[12] Ali Madani, Bryan McCann, Nikhil Naik, Nitish Shirish Keskar, Namrata Anand, Raphael R Eguchi, Po-Ssu Huang, and Richard Socher. Progen: Language modeling for protein generation. arXiv preprint arXiv:2004.03497, 2020.
|
| 274 |
+
[13] Cheng-Zhi Anna Huang, Ashish Vaswani, Jakob Uszkoreit, Noam Shazeer, Curtis Hawthorne, AM Dai, MD Hoffman, and D Eck. Music transformer: Generating music with long-term structure (2018). In International Conference on Learning Representations (ICLR), 2019.
|
| 275 |
+
[14] Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509, 2019.
|
| 276 |
+
[15] Aaron Van Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. In International Conference on Machine Learning (ICML), 2016.
|
| 277 |
+
[16] Niki Parmar, Ashish Vaswani, Jakob Uszkoreit, Lukasz Kaiser, Noam Shazeer, Alexander Ku, and Dustin Tran. Image transformer. In International Conference on Machine Learning (ICML), 2018.
|
| 278 |
+
[17] Jack W Rae, Anna Potapenko, Siddhant M Jayakumar, and Timothy P Lillicrap. Compressive transformers for long-range sequence modelling. In International Conference on Learning Representations (ICLR), 2020.
|
| 279 |
+
[18] Shiyang Li, Xiaoyong Jin, Yao Xuan, Xiyou Zhou, Wenhu Chen, Yu-Xiang Wang, and Xifeng Yan. Enhancing the locality and breaking the memory bottleneck of transformer on time series forecasting. In Advances in Neural Information Processing Systems (NeurIPS), 2019.
|
| 280 |
+
[19] Zilong Huang, Xinggang Wang, Lichao Huang, Chang Huang, Yunchao Wei, and Wenyu Liu. Ccnet: Criss-cross attention for semantic segmentation. In International Conference on Computer Vision (ICCV), 2019.
|
| 281 |
+
[20] Jonathan Ho, Nal Kalchbrenner, Dirk Weissenborn, and Tim Salimans. Axial attention in multidimensional transformers. arXiv preprint arXiv:1912.12180, 2019.
|
| 282 |
+
[21] Nikita Kitaev, Łukasz Kaiser, and Anselm Levskaya. Reformer: The efficient transformer. In International Conference on Learning Representations (ICLR), 2020.
|
| 283 |
+
[22] Aurko Roy, Mohammad Saffar, Ashish Vaswani, and David Grangier. Efficient content-based sparse attention with routing transformers. Transactions of the Association for Computational Linguistics, 9:53–68, 2021.
|
| 284 |
+
[23] Zihang Dai, Zhilin Yang, Yiming Yang, Jaime Carbonell, Quoc V Le, and Ruslan Salakhutdinov. Transformer-xl: Attentive language models beyond a fixed-length context. In Annual Meeting of the Association for Computational Linguistics (ACL), 2019.
|
| 285 |
+
[24] Zhuoran Shen, Mingyuan Zhang, Shuai Yi, Junjie Yan, and Haiyu Zhao. Factorized attention: Self-attention with linear complexities. CoRR, 2018.
|
| 286 |
+
[25] Sinong Wang, Belinda Li, Madian Khabsa, Han Fang, and Hao Ma. Linformer: Self-attention with linear complexity. arXiv preprint arXiv:2006.04768, 2020.
|
| 287 |
+
[26] Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and François Fleuret. Transformers are rnns: Fast autoregressive transformers with linear attention. In International Conference on Machine Learning (ICML), 2020.
|
| 288 |
+
[27] Si Si, Cho-Jui Hsieh, and Inderjit S Dhillon. Memory efficient kernel approximation. The Journal of Machine Learning Research, 2017.
|
| 289 |
+
[28] Krzysztof Choromanski, Valerii Likhosherstov, David Dohan, Xingyou Song, Andreea Gane, Tamas Sarlos, Peter Hawkins, Jared Davis, Afroz Mohiuddin, Lukasz Kaiser, et al. Rethinking attention with performers. In International Conference on Learning Representations (ICLR), 2021.
|
| 290 |
+
[29] Ali Rahimi, Benjamin Recht, et al. Random features for large-scale kernel machines. In Advances in Neural Information Processing Systems (NeurIPS), 2007.
|
| 291 |
+
[30] Hao Peng, Nikolaos Pappas, Dani Yogatama, Roy Schwartz, Noah A Smith, and Lingpeng Kong. Random feature attention. In International Conference on Learning Representations (ICLR), 2021.
|
| 292 |
+
[31] Yi Tay, Mostafa Dehghani, Samira Abnar, Yikang Shen, Dara Bahri, Philip Pham, Jinfeng Rao, Liu Yang, Sebastian Ruder, and Donald Metzler. Long range arena: A benchmark for efficient transformers. In International Conference on Learning Representations (ICLR), 2021.
|
| 293 |
+
[32] Manzil Zaheer, Satwik Kottur, Siamak Ravanbakhsh, Barnabas Poczos, Ruslan Salakhutdinov, and Alexander Smola. Deep sets. In Advances in Neural Information Processing Systems (NeurIPS), 2017.
|
| 294 |
+
[33] Zhilin Yang, Zihang Dai, Ruslan Salakhutdinov, and William W Cohen. Breaking the softmax bottleneck: A high-rank rnn language model. In International Conference on Learning Representations (ICLR), 2018.
|
| 295 |
+
[34] Mandy Guo, Zihang Dai, Denny Vrandeciˇ c, and Rami Al-Rfou. Wiki-40b: Multilingual ´ language model dataset. In Proceedings of The 12th Language Resources and Evaluation Conference, 2020.
|
| 296 |
+
[35] Heewoo Jun, Rewon Child, Mark Chen, John Schulman, Aditya Ramesh, Alec Radford, and Ilya Sutskever. Distribution augmentation for generative modeling. In International Conference on Machine Learning (ICML), 2020.
|
| 297 |
+
[36] Tim Salimans, Andrej Karpathy, Xi Chen, and Diederik P Kingma. Pixelcnn $^ { + + }$ : Improving the pixelcnn with discretized logistic mixture likelihood and other modifications. In International Conference on Learning Representations (ICLR), 2017.
|
| 298 |
+
[37] Xi Chen, Nikhil Mishra, Mostafa Rohaninejad, and Pieter Abbeel. Pixelsnail: An improved autoregressive generative model. In International Conference on Machine Learning (ICML), 2018.
|
| 299 |
+
[38] Scott Reed, Aäron Oord, Nal Kalchbrenner, Sergio Gómez Colmenarejo, Ziyu Wang, Yutian Chen, Dan Belov, and Nando Freitas. Parallel multiscale autoregressive density estimation. In International Conference on Machine Learning (ICML), 2017.
|
| 300 |
+
[39] Diederik P Kingma and Prafulla Dhariwal. Glow: Generative flow with invertible 1x1 convolutions. In Advances in Neural Information Processing Systems (NeurIPS), 2018.
|
| 301 |
+
[40] Jacob Menick and Nal Kalchbrenner. Generating high fidelity images with subscale pixel networks and multidimensional upscaling. In International Conference on Learning Representations (ICLR), 2019.
|
| 302 |
+
[41] Manzil Zaheer, Guru Guruganesh, Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, et al. Big bird: Transformers for longer sequences. In Advances in Neural Information Processing Systems (NeurIPS), 2020.
|
| 303 |
+
[42] Chulhee Yun, Yin-Wen Chang, Srinadh Bhojanapalli, Ankit Singh Rawat, Sashank J Reddi, and Sanjiv Kumar. $o ( n )$ connections are expressive enough: Universal approximability of sparse transformers. arXiv preprint arXiv:2006.04862, 2020.
|
parse/train/MQQeeDiO5vv/MQQeeDiO5vv_content_list.json
ADDED
|
@@ -0,0 +1,1345 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Combiner: Full Attention Transformer with Sparse Computation Cost ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
261,
|
| 8 |
+
122,
|
| 9 |
+
736,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "∗Hongyu Ren†, ∗Hanjun Dai⋄, ∗Zihang Dai⋄ Mengjiao Yang⋄, Jure Leskovec†, Dale Schuurmans⋄,‡, Bo Dai⋄ †Stanford University, {hyren,jure}@cs.stanford.edu ⋄Google Research, Brain Team, {hadai,zihangd,sherryy,schuurmans,bodai}@google.com ‡University of Alberta ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
207,
|
| 19 |
+
224,
|
| 20 |
+
794,
|
| 21 |
+
297
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Abstract ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
462,
|
| 31 |
+
334,
|
| 32 |
+
535,
|
| 33 |
+
351
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Transformers provide a class of expressive architectures that are extremely effective for sequence modeling. However, the key limitation of transformers is their quadratic memory and time complexity $\\mathcal { O } ( L ^ { 2 } )$ with respect to the sequence length in attention layers, which restricts application in extremely long sequences. Most existing approaches leverage sparsity or low-rank assumptions in the attention matrix to reduce cost, but sacrifice expressiveness. Instead, we propose Combiner, which provides full attention capability in each attention head while maintaining low computation and memory complexity. The key idea is to treat the self-attention mechanism as a conditional expectation over embeddings at each location, and approximate the conditional distribution with a structured factorization. Each location can attend to all other locations, either via direct attention, or through indirect attention to abstractions, which are again conditional expectations of embeddings from corresponding local regions. We show that most sparse attention patterns used in existing sparse transformers are able to inspire the design of such factorization for full attention, resulting in the same sub-quadratic cost $( { \\mathcal { O } } ( L \\log ( L ) )$ or $\\mathcal { O } ( L \\sqrt { L } ) )$ . Combiner is a drop-in replacement for attention layers in existing transformers and can be easily implemented in common frameworks. An experimental evaluation on both autoregressive and bidirectional sequence tasks demonstrates the effectiveness of this approach, yielding state-of-the-art results on several image and text modeling tasks. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
366,
|
| 43 |
+
766,
|
| 44 |
+
646
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 Introduction ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
174,
|
| 54 |
+
674,
|
| 55 |
+
310,
|
| 56 |
+
690
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "The Transformer [1] is a powerful neural network architecture that has demonstrated state-of-the-art performance in machine translation [2] and many other natural language processing (NLP) tasks via pretraining, using either unidirectional language modeling [3] or bidirectional language modeling [4–8]. It has also achieved excellent results in other domains like image recognition [9], code understanding [10], speech recognition [11], protein [12], music [13] and image [14] generative modeling. The core component of Transformer is the attention mechanism, which computes dependencies between all pairs of positions in a sequence. However, for a sequence of length $L$ , the expressiveness of pairwise attention comes at a quadratic cost $\\mathcal { O } ( L ^ { 2 } )$ in both time and memory consumption. This makes the vanilla Transformer [1] prohibitive for applications that involve long sequences, including high-resolution images, protein sequences, or raw speech signals [15], where the sequence length $L$ is often larger than 10, 000 [14]. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
707,
|
| 66 |
+
825,
|
| 67 |
+
859
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Recently, there have been several attempts to scale up attention to long sequences. A popular class of methods sparsifies the attention matrix with different sparsity patterns, including local window [16, 17], local+stride [14], log-sparse [18], axial [19, 20], or learnable patterns through hashing [21] or clustering [22]. Sparse attention enjoys sub-quadratic cost, but is lossy in capturing all-pair relationships. Generally, sparse attention requires more layers [14, 20, 23] to achieve full autoregressive or bidirectional dependencies (or receptive fields [20]) for each location in a long sequence. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
866,
|
| 77 |
+
823,
|
| 78 |
+
893
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
90,
|
| 88 |
+
825,
|
| 89 |
+
160
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 1
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Alternatively, another line of research has tried to achieve scalability with an explicit low-rank assumption [24, 25] on the attention matrix or by using explicit feature maps of some kernels [26]. However these explicit low dimensional approximations might be too restricted for the potentially full rank attention matrix, which uses exponential kernels that are effectively infinite dimensional [27]. The Performer [28] is among the first works that attempts to approximate regular full-rank attention with the random feature trick [29]. However such random-feature based approaches [30] require many more bases to better approximate the exponential kernel [27], and empirically we found it produces inferior results in some sequence modeling tasks, such as density estimation. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
173,
|
| 98 |
+
166,
|
| 99 |
+
825,
|
| 100 |
+
279
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "In this paper we propose Combiner, a drop-in replacement for the vanilla quadratic attention mechanism with sub-quadratic computation and memory cost. Combiner still achieves full attention capability within each head of Multi-Head Attention, unlike approaches that adopt sparse or low-rank approximations. As we will discuss, the standard attention computed at each location can be seen as the conditional expectation of the value embeddings at all feasible locations given the current location. Based on such an understanding, Combiner explicitly approximates the conditional distribution in through a structured factorization of the probability space. Specifically, given a location $x$ , the probability of attending to location $y$ can be either directly calculated via the query vector of $x$ and key vector of $y$ , or indirectly through a local abstraction where $x$ first attends to the key vector that represents a group of locations containing $y$ , and multiplying the probability of choosing $y$ within that group. We refer to this model as Combiner since the conditional distributions in attention become a combination between several local attentions and direct attentions. This structured decomposition enables Combiner to take existing sparse attention patterns and convert them into corresponding design choices for probability factorizations that achieve full attention. As shown in Figure 1, Combiner achieves full attention with the same asymptotic complexity as sparse variants. Combiner can be easily implemented in most existing deep learning frameworks without the need for specialized hardware implementation, and is GPU/TPU friendly. In fact, both the fixed and learnable sparse attention patterns from many existing Transformer variants [14, 18, 20, 22] can be enhanced with such structured factorizations, with the same order of time or memory cost. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
284,
|
| 110 |
+
825,
|
| 111 |
+
546
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "We validate Combiner on both autoregressive and bidirectional sequence modeling tasks over a variety of domains including text and images. We show that Combiner can achieve better perplexity and accuracy when using the same transformer architectures while being much faster in terms of runtime, and achieves state of the art performance on density estimation on standard datasets CIFAR-10 (2.77 bits/dim) and ImageNet-64 (3.42 bits/dim), as well as the Long-Range Arena [31]. The implementation of Combiner can be found at https://github.com/google-research/googleresearch/tree/master/combiner. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
173,
|
| 120 |
+
553,
|
| 121 |
+
825,
|
| 122 |
+
650
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "2 Attention as Conditional Expectation ",
|
| 129 |
+
"text_level": 1,
|
| 130 |
+
"bbox": [
|
| 131 |
+
174,
|
| 132 |
+
675,
|
| 133 |
+
516,
|
| 134 |
+
693
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "In this section, we revisit the formulation of the standard Transformer [1] from the perspective of conditional expectation, which inspires the derivation of Combiner. ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
173,
|
| 143 |
+
708,
|
| 144 |
+
821,
|
| 145 |
+
737
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "Without loss of generality, we use a single sequence in the self-attention scenario. Given a sequence of $L$ embeddings $X = \\bar { [ { x _ { 1 } } , { x _ { 2 } } , { . . . , \\bar { { x _ { L } } } } ] }$ , where $X \\in \\mathbb { R } ^ { L \\times d }$ and each embedding $x _ { i } \\in \\mathbb { R } ^ { d }$ is a $d$ -dimensional vector, the core component of Transformer is the multi-head attention, where each head $h$ is a scaled dot-product attention: ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
743,
|
| 155 |
+
825,
|
| 156 |
+
799
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "equation",
|
| 162 |
+
"img_path": "images/a009de902554041509ad676b8a8c81855a749d98054743239e43e1969557d83c.jpg",
|
| 163 |
+
"text": "$$\nA _ { h } ( X ) = \\operatorname { s o f } \\operatorname { t m a x } \\left( \\frac { Q _ { h } } { \\sqrt { d } } K _ { h } ^ { \\top } \\right) V _ { h } , \\left\\{ Q _ { h } = X W _ { h } ^ { Q } , K _ { h } = X W _ { h } ^ { K } , V _ { h } = X W _ { h } ^ { V } \\right\\} \\in \\mathbb { R } ^ { L \\times d } ,\n$$",
|
| 164 |
+
"text_format": "latex",
|
| 165 |
+
"bbox": [
|
| 166 |
+
189,
|
| 167 |
+
799,
|
| 168 |
+
787,
|
| 169 |
+
834
|
| 170 |
+
],
|
| 171 |
+
"page_idx": 1
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"type": "text",
|
| 175 |
+
"text": "and the attention vector from each head $A _ { h } ( X )$ is concatenated and projected: ",
|
| 176 |
+
"bbox": [
|
| 177 |
+
168,
|
| 178 |
+
834,
|
| 179 |
+
692,
|
| 180 |
+
849
|
| 181 |
+
],
|
| 182 |
+
"page_idx": 1
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"type": "equation",
|
| 186 |
+
"img_path": "images/4d3d083eb3d1c216ede426625e297cd0607155f5989e74366807c62d19d7db79.jpg",
|
| 187 |
+
"text": "$$\n\\mathrm { i } \\mathrm { H e a d A t t u } ( X ) = [ A _ { 1 } ( X ) , A _ { 2 } ( X ) , \\ldots , A _ { H } ( X ) ] W ^ { o } , W ^ { o } \\in \\mathbb { R } ^ { H \\times d } .\n$$",
|
| 188 |
+
"text_format": "latex",
|
| 189 |
+
"bbox": [
|
| 190 |
+
289,
|
| 191 |
+
851,
|
| 192 |
+
745,
|
| 193 |
+
868
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 1
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "Mult (2) Here $H$ is the total number of heads per Transformer layer. In this paper, we focus on how to approximate full attention within each head of multi-head attention. For ease of notation, we drop the head index $h$ whenever possible, and use lower-case letters $x _ { i } , q _ { i } , k _ { i } , v _ { i } \\in \\mathbb { R } ^ { d }$ to denote rows in ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
174,
|
| 202 |
+
859,
|
| 203 |
+
825,
|
| 204 |
+
911
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 1
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "image",
|
| 210 |
+
"img_path": "images/d44efb34f4d107361bc8899c32aa28458e1c5d06ab6ad955f245d4864635aec0.jpg",
|
| 211 |
+
"image_caption": [
|
| 212 |
+
"Figure 1: Attention matrices of several instantiations of Combiner in the autoregressive setting. We transform several sparse attention patterns: Fixed (A) [14], Logsparse (B) [18] and Axial (C) [20] to Combiner-Fixed (D), Combiner-Logsparse (E) and Combiner-Axial (F). Combiner approximates the conditional expectation (3) with a combination of direct expectation (blue) and local expectation (yellow). Our instantiations (D)(E)(F) achieves full attention with the same sub-quadratic complexity. "
|
| 213 |
+
],
|
| 214 |
+
"image_footnote": [],
|
| 215 |
+
"bbox": [
|
| 216 |
+
209,
|
| 217 |
+
88,
|
| 218 |
+
792,
|
| 219 |
+
340
|
| 220 |
+
],
|
| 221 |
+
"page_idx": 2
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"type": "text",
|
| 225 |
+
"text": "$X , Q , K , V$ respectively, which corresponds to a location $i$ in the original sequence of length $L$ . We use $[ n ]$ to denote the set of positive integers $\\{ 1 , 2 , \\ldots , n \\}$ . ",
|
| 226 |
+
"bbox": [
|
| 227 |
+
174,
|
| 228 |
+
426,
|
| 229 |
+
823,
|
| 230 |
+
457
|
| 231 |
+
],
|
| 232 |
+
"page_idx": 2
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"type": "text",
|
| 236 |
+
"text": "For a position $i \\in [ L ]$ , the attention formulation (1) can be viewed as conditional expectation of rows in $V$ . Specifically, since softmax outputs a probability distribution, we can rewrite (1) as ",
|
| 237 |
+
"bbox": [
|
| 238 |
+
173,
|
| 239 |
+
460,
|
| 240 |
+
825,
|
| 241 |
+
489
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 2
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "equation",
|
| 247 |
+
"img_path": "images/b00c825cc831f57f67f59204c99e0da57691eea75eda9f874e160b233ff5b8c2.jpg",
|
| 248 |
+
"text": "$$\nA ( x _ { i } ) = \\mathbb { E } _ { p ( j | i ) } \\left[ v _ { j } \\right] , \\qquad p ( j | i ) = \\frac { 1 } { Z \\left( x _ { i } \\right) } \\exp \\left( \\frac { q _ { i } } { \\sqrt { d } } k _ { j } ^ { \\top } \\right) ,\n$$",
|
| 249 |
+
"text_format": "latex",
|
| 250 |
+
"bbox": [
|
| 251 |
+
302,
|
| 252 |
+
489,
|
| 253 |
+
692,
|
| 254 |
+
523
|
| 255 |
+
],
|
| 256 |
+
"page_idx": 2
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"type": "text",
|
| 260 |
+
"text": "where $p ( j | i )$ denotes the conditional probability at position $j$ given the token at position $i$ and the partition function $\\begin{array} { r } { Z \\left( x _ { i } \\right) = \\sum _ { j \\in \\Omega _ { i } } \\exp \\left( \\frac { q _ { i } } { \\sqrt { d } } k _ { j } ^ { \\top } \\right) } \\end{array}$ over support $\\Omega _ { i }$ . The support $\\Omega _ { i }$ of $p \\left( j | i \\right)$ defines the set of valid locations that the $i$ -th token can attend to. For instance, the support set in autoregressive language modeling (LM) consists of all previous tokens, i.e., $\\Omega _ { i } ^ { \\mathrm { L M } } = [ i ] ^ { 2 }$ ; in masked i language modeling (MLM) the support consists of all tokens in the sequence, i.e., $\\Omega _ { i } ^ { \\mathrm { M L M } } = [ L ]$ . That is, $\\bar { \\Omega } _ { i } ^ { \\mathrm { L M } }$ and $\\Omega _ { i } ^ { \\mathrm { M L M } }$ represent the full attention capability respectively in the LM and MLM setting. ",
|
| 261 |
+
"bbox": [
|
| 262 |
+
173,
|
| 263 |
+
525,
|
| 264 |
+
826,
|
| 265 |
+
618
|
| 266 |
+
],
|
| 267 |
+
"page_idx": 2
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "text",
|
| 271 |
+
"text": "3 Combiner: Full Attention via Structured Conditional Expectation ",
|
| 272 |
+
"text_level": 1,
|
| 273 |
+
"bbox": [
|
| 274 |
+
169,
|
| 275 |
+
637,
|
| 276 |
+
754,
|
| 277 |
+
656
|
| 278 |
+
],
|
| 279 |
+
"page_idx": 2
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"type": "text",
|
| 283 |
+
"text": "The complexity of $p \\left( j | i \\right)$ is the bottleneck of the computation for $A \\left( x _ { i } \\right)$ . Generally, in existing sparse transformers, the support of $p \\left( j | i \\right)$ is sparsified to reduce the computation and memory complexity, e.g., $\\Omega _ { i } ^ { \\mathrm { S p a r s e } } \\subsetneq \\Omega _ { i } ^ { \\mathrm { L M } }$ for LM and $\\Omega _ { i } ^ { \\mathrm { S p a r s e } } \\subsetneq \\Omega _ { i } ^ { \\mathrm { M L M } }$ for MLM, but this can lead to either reduced capacity or limited applicability. We defer detailed discussion of the full capacity of the model to Appendix A. In this section we introduce the Combiner, which achieves $\\Omega _ { i } ^ { \\mathrm { C o m b i n e r } } = \\Omega _ { i } ^ { \\mathrm { L M } }$ for LM and $\\Omega _ { i } ^ { \\mathrm { C o m b i n e r } } = \\Omega _ { i } ^ { \\mathrm { M L M } }$ for MLM, while still maintaining sub-quadratic computation and memory cost. Below we denote $\\Omega _ { i }$ as the support for full attention if there is no ambiguity or need to distinguish between LM or MLM. We introduce the main design framework in Section 3.1 and possible parameterizations in Section 3.2. Then in Section 3.3 we analyze the trade-off of Combiner. ",
|
| 284 |
+
"bbox": [
|
| 285 |
+
173,
|
| 286 |
+
670,
|
| 287 |
+
826,
|
| 288 |
+
800
|
| 289 |
+
],
|
| 290 |
+
"page_idx": 2
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"type": "text",
|
| 294 |
+
"text": "3.1 Local Factorization for Conditional Expectation ",
|
| 295 |
+
"text_level": 1,
|
| 296 |
+
"bbox": [
|
| 297 |
+
173,
|
| 298 |
+
818,
|
| 299 |
+
547,
|
| 300 |
+
833
|
| 301 |
+
],
|
| 302 |
+
"page_idx": 2
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"type": "text",
|
| 306 |
+
"text": "The main idea of Combiner is to exploit a hierarchical structure for conditional probability modeling in (3), which provides the opportunity for reducing computation complexity while maintaining the ",
|
| 307 |
+
"bbox": [
|
| 308 |
+
174,
|
| 309 |
+
843,
|
| 310 |
+
823,
|
| 311 |
+
872
|
| 312 |
+
],
|
| 313 |
+
"page_idx": 2
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"type": "text",
|
| 317 |
+
"text": "same support. Specifically, we introduce support variables $\\Omega _ { i } ^ { r }$ , for $r = 0 , \\ldots , n _ { i }$ and $i \\in [ L ]$ . The support variables are disjoint, i.e., $\\Omega _ { i } ^ { r } \\cap \\Omega _ { i } ^ { s } = \\emptyset , \\forall r \\neq s$ , and $\\cup _ { r = 0 } ^ { n _ { i } } \\Omega _ { i } ^ { r } = \\Omega _ { i }$ . Then we can factorize $p ( j | i )$ as ",
|
| 318 |
+
"bbox": [
|
| 319 |
+
174,
|
| 320 |
+
90,
|
| 321 |
+
825,
|
| 322 |
+
133
|
| 323 |
+
],
|
| 324 |
+
"page_idx": 3
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"type": "equation",
|
| 328 |
+
"img_path": "images/14731fe323d20043ea31ef10702788faae124e1d94215c40853cd8463d628929.jpg",
|
| 329 |
+
"text": "$$\np ( j | i ) = \\sum _ { r = 0 } ^ { n _ { i } } p ( j , \\Omega _ { i } ^ { r } | i ) = \\sum _ { r = 0 } ^ { n _ { i } } p ( j | \\Omega _ { i } ^ { r } , i ) p ( \\Omega _ { i } ^ { r } | i ) = p ( j | \\Omega _ { i } ^ { r _ { j } } , i ) p ( \\Omega _ { i } ^ { r _ { j } } | i ) ,\n$$",
|
| 330 |
+
"text_format": "latex",
|
| 331 |
+
"bbox": [
|
| 332 |
+
246,
|
| 333 |
+
135,
|
| 334 |
+
717,
|
| 335 |
+
175
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 3
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "text",
|
| 341 |
+
"text": "where $r _ { j }$ denotes the index of the support to which $j$ belongs. The last equation arises from the fact that the $\\Omega _ { i } ^ { r }$ are disjoint from each other $( \\Omega _ { i } ^ { r } \\cap \\Omega _ { i } ^ { s } = \\emptyset , \\forall r \\neq s )$ . Therefore, there is only one support, $\\Omega _ { i } ^ { r _ { j } }$ , containing $j$ . The remaining terms, where $j \\notin \\Omega _ { i } ^ { r }$ for $r \\neq r _ { j }$ , are all zero since $p \\left( j | \\Omega _ { i } ^ { r } , i \\right) = 0$ ",
|
| 342 |
+
"bbox": [
|
| 343 |
+
176,
|
| 344 |
+
175,
|
| 345 |
+
821,
|
| 346 |
+
219
|
| 347 |
+
],
|
| 348 |
+
"page_idx": 3
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"type": "text",
|
| 352 |
+
"text": "Furthermore, assume $\\Omega _ { i } ^ { r _ { j } }$ is a sufficient statistic, i.e., $j$ and $i$ are independent given $\\Omega _ { i } ^ { r _ { j } }$ , we obtain ",
|
| 353 |
+
"bbox": [
|
| 354 |
+
171,
|
| 355 |
+
226,
|
| 356 |
+
815,
|
| 357 |
+
241
|
| 358 |
+
],
|
| 359 |
+
"page_idx": 3
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"type": "equation",
|
| 363 |
+
"img_path": "images/d192d04a26e380033bdc1c19f9b03cbb190e8276dd4da40f4b1f384faddf68ef.jpg",
|
| 364 |
+
"text": "$$\np ( j | i ) = p ( j | \\Omega _ { i } ^ { r _ { j } } ) p ( \\Omega _ { i } ^ { r _ { j } } | i ) .\n$$",
|
| 365 |
+
"text_format": "latex",
|
| 366 |
+
"bbox": [
|
| 367 |
+
406,
|
| 368 |
+
242,
|
| 369 |
+
588,
|
| 370 |
+
261
|
| 371 |
+
],
|
| 372 |
+
"page_idx": 3
|
| 373 |
+
},
|
| 374 |
+
{
|
| 375 |
+
"type": "text",
|
| 376 |
+
"text": "Given the partition $\\left\\{ \\Omega _ { i } ^ { r } \\right\\} _ { r = 0 } ^ { n _ { i } }$ , the attention form in (3) can be rewritten as ",
|
| 377 |
+
"bbox": [
|
| 378 |
+
173,
|
| 379 |
+
266,
|
| 380 |
+
653,
|
| 381 |
+
284
|
| 382 |
+
],
|
| 383 |
+
"page_idx": 3
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"type": "equation",
|
| 387 |
+
"img_path": "images/5420973101c6688cab715081384385d741bb267a8cd0f301cd068c3aac746119.jpg",
|
| 388 |
+
"text": "$$\n\\begin{array} { r c l } { A \\left( \\boldsymbol { x } _ { i } \\right) } & { = } & { \\mathbb { E } _ { p ( \\boldsymbol { j } | i ) } \\left[ \\boldsymbol { v } _ { j } \\right] = \\displaystyle \\sum _ { r = 0 } ^ { n _ { i } } \\sum _ { j \\in \\Omega _ { i } ^ { r } } p \\left( \\boldsymbol { j } , \\Omega _ { i } ^ { r } | i \\right) \\boldsymbol { v } _ { j } } \\\\ & { = } & { \\displaystyle \\sum _ { j \\in \\Omega _ { i } ^ { 0 } } \\tilde { p } ( \\boldsymbol { j } | i ) \\boldsymbol { v } _ { j } + \\sum _ { r = 1 } ^ { n _ { i } } p ( \\Omega _ { i } ^ { r } | i ) \\underbrace { \\left( \\sum _ { j \\in \\Omega _ { i } ^ { r } } p ( \\boldsymbol { j } | \\Omega _ { i } ^ { r } ) \\boldsymbol { v } _ { j } \\right) } _ { j \\in \\Omega _ { i } ^ { r } } , } \\end{array}\n$$",
|
| 389 |
+
"text_format": "latex",
|
| 390 |
+
"bbox": [
|
| 391 |
+
284,
|
| 392 |
+
284,
|
| 393 |
+
710,
|
| 394 |
+
375
|
| 395 |
+
],
|
| 396 |
+
"page_idx": 3
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"type": "text",
|
| 400 |
+
"text": "where we consider direct attention in partition $\\Omega _ { i } ^ { 0 }$ and apply the local factorization (5) to the partition $r = 1 , \\ldots , n _ { i }$ . Here $\\tilde { p } ( j | i ) \\propto p ( j | i )$ but with different normalization constants, which will be explained below. We refer to this model as Combiner since the structured attention (7) combines the direct expectation of $\\Omega _ { i } ^ { 0 }$ and multiple local expectations via $p ( j | \\Omega _ { i } ^ { r } )$ and $p ( \\Omega _ { i } ^ { r } | i )$ to form the final conditional expectation. ",
|
| 401 |
+
"bbox": [
|
| 402 |
+
173,
|
| 403 |
+
390,
|
| 404 |
+
826,
|
| 405 |
+
460
|
| 406 |
+
],
|
| 407 |
+
"page_idx": 3
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"type": "text",
|
| 411 |
+
"text": "Equivalently, we can also rewrite the structured attention (7) as ",
|
| 412 |
+
"bbox": [
|
| 413 |
+
174,
|
| 414 |
+
465,
|
| 415 |
+
588,
|
| 416 |
+
481
|
| 417 |
+
],
|
| 418 |
+
"page_idx": 3
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"type": "equation",
|
| 422 |
+
"img_path": "images/b345f5cf1117f455079051c230a2741542f05695183530876b0ae5d5e15e8526.jpg",
|
| 423 |
+
"text": "$$\n\\begin{array} { r } { A ( x _ { i } ) = \\sum _ { j \\in \\Omega _ { i } } \\left[ \\mathbb { I } ( j \\in \\Omega _ { i } ^ { 0 } ) \\tilde { p } ( j | i ) + \\displaystyle \\sum _ { r = 1 } ^ { n _ { i } } \\mathbb { I } ( j \\in \\Omega _ { i } ^ { r } ) { p } ( j | \\Omega _ { i } ^ { r } ) { p } ( \\Omega _ { i } ^ { r } | i ) \\right] v _ { j } , } \\end{array}\n$$",
|
| 424 |
+
"text_format": "latex",
|
| 425 |
+
"bbox": [
|
| 426 |
+
245,
|
| 427 |
+
481,
|
| 428 |
+
718,
|
| 429 |
+
525
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 3
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "text",
|
| 435 |
+
"text": "where $\\mathbb { I } ( \\cdot )$ is a binary indicator function. After reordering, one can see from (8) that we obtain the effective conditional probability $q ( j | i )$ that tries to approximate the original $p ( j | i )$ . Each probability term depends on both current location $i$ and other location $j$ , and the expectation is still obtained with respect to a valid conditional probability (non-negative and sums up to 1 over $\\Omega _ { i }$ ). ",
|
| 436 |
+
"bbox": [
|
| 437 |
+
173,
|
| 438 |
+
545,
|
| 439 |
+
826,
|
| 440 |
+
602
|
| 441 |
+
],
|
| 442 |
+
"page_idx": 3
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"type": "text",
|
| 446 |
+
"text": "Requirement for Sub-quadratic Cost. We can immediately see the benefit of this formulation from the fact that the local expectation in (7) is independent of the position $i$ . The full dependence is achieved via the multiplier $p ( \\Omega _ { i } ^ { r } | i )$ where $j \\in \\Omega _ { i } ^ { r }$ . If we can design the local factorization such that: ",
|
| 447 |
+
"bbox": [
|
| 448 |
+
173,
|
| 449 |
+
606,
|
| 450 |
+
825,
|
| 451 |
+
650
|
| 452 |
+
],
|
| 453 |
+
"page_idx": 3
|
| 454 |
+
},
|
| 455 |
+
{
|
| 456 |
+
"type": "text",
|
| 457 |
+
"text": "1. the order of number of terms in (7) for $p ( \\cdot | i )$ $i ) , \\forall i \\in [ L ] \\colon \\sum _ { i = 1 } ^ { L } ( n _ { i } + | \\Omega _ { i } ^ { 0 } | )$ is sub-quadratic; and 2. let $\\mathcal { U } = \\{ \\Omega _ { i } ^ { r } \\} _ { i \\in [ L ] , r \\in [ 1 , n _ { i } ] }$ be the unique set of partitions used for local expectation calculation, then the order of $| \\mathcal { U } |$ (i.e., the number of unique partitions in $\\mathcal { U }$ ) is sub-quadratic; 3. the order of total number of unique calculations of local expectation across all locations in (7), $\\textstyle \\sum _ { \\Omega \\in { \\mathcal { U } } } | \\Omega |$ is sub-quadratic; ",
|
| 458 |
+
"bbox": [
|
| 459 |
+
171,
|
| 460 |
+
656,
|
| 461 |
+
826,
|
| 462 |
+
731
|
| 463 |
+
],
|
| 464 |
+
"page_idx": 3
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"type": "text",
|
| 468 |
+
"text": "then one can see that the overall computation and memory cost will be sub-quadratic with full attention support $\\Omega _ { i } ^ { \\mathrm { C o m b i n e r } } = \\Omega _ { i } , \\forall i \\in \\overline { { [ L ] } }$ . We will discuss in detail in Section 4 how to instantiate such a principle by drawing inspiration from existing sparse transformers, and how to convert them into a full attention model almost for free with identical asymptotic complexity. ",
|
| 469 |
+
"bbox": [
|
| 470 |
+
174,
|
| 471 |
+
734,
|
| 472 |
+
825,
|
| 473 |
+
791
|
| 474 |
+
],
|
| 475 |
+
"page_idx": 3
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"type": "text",
|
| 479 |
+
"text": "Remark (Further Hierarchical Decomposition): We introduce the local decomposition with a one \nlayer partition of support of $p ( \\cdot | i )$ for simplicity. In fact, such local decompositions can be stacked \nfurthesubset roduces a partition tre, and consider local dec Specificmposition $\\Omega _ { i } ^ { r }$ $\\left\\{ \\Omega _ { i } ^ { r k } \\right\\} _ { k = 1 } ^ { n _ { r } }$ $p ( j , \\Omega _ { i } ^ { r } | i ) = p ( j | \\Omega _ { i } ^ { r k _ { j } } , i ) p ( \\Omega _ { i } ^ { r k _ { j } } | \\Omega _ { i } ^ { r } , i ) p ( \\Omega _ { i } ^ { r } | i )$ $k _ { j }$ $j$ of $p ( j | i )$ , which can also be plugged to (6) and yield a new full attention formulation. ",
|
| 480 |
+
"bbox": [
|
| 481 |
+
173,
|
| 482 |
+
796,
|
| 483 |
+
825,
|
| 484 |
+
886
|
| 485 |
+
],
|
| 486 |
+
"page_idx": 3
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"type": "text",
|
| 490 |
+
"text": "3.2 Parameterizing Conditional Probabilities ",
|
| 491 |
+
"text_level": 1,
|
| 492 |
+
"bbox": [
|
| 493 |
+
176,
|
| 494 |
+
90,
|
| 495 |
+
500,
|
| 496 |
+
106
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 4
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "text",
|
| 502 |
+
"text": "While we obtained a possible way to speed up the standard Transformer via a combination of direct expectation and local expectations, it is also important to have an efficient design choice for the probability terms in (7), namely $\\tilde { p } ( j | i )$ from direct expectation, $p ( j | \\Omega _ { i } ^ { r } )$ from local expectation and $\\bar { \\boldsymbol { p } } ( \\Omega _ { i } ^ { r } | i )$ for $r \\in [ 1 , n _ { i } ]$ . For simplicity we use the scaled dot-product, which means that we will associate positions $i , j$ and variable sets $\\Omega _ { i } ^ { r }$ with the corresponding embedding representation, and thus the probability is proportional to the exponential of the embedding inner products. Specifically: ",
|
| 503 |
+
"bbox": [
|
| 504 |
+
173,
|
| 505 |
+
117,
|
| 506 |
+
825,
|
| 507 |
+
202
|
| 508 |
+
],
|
| 509 |
+
"page_idx": 4
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"type": "text",
|
| 513 |
+
"text": "• $\\tilde { p } ( j | i )$ : As this term is for the direct expectation, we can let $\\begin{array} { r } { \\tilde { p } ( j | i ) \\propto \\exp ( \\frac { q _ { i } } { \\sqrt { d } } k _ { j } ^ { \\top } ) } \\end{array}$ , which is the same as vanilla attention (3) but with different normalizations, which will be explained in Equation 9. • $p ( \\Omega _ { i } ^ { r } | i )$ : This term aims to capture the joint event probability, i.e., $\\begin{array} { r } { p ( \\Omega _ { i } ^ { r } | i ) \\propto \\exp \\left( \\frac { q _ { i } } { \\sqrt { d } } k _ { \\Omega _ { i } ^ { r } } ^ { \\top } \\right) } \\end{array}$ . Thus the design choice of $k _ { \\Omega _ { i } ^ { r } }$ should make an abstraction of the corresponding support $\\Omega _ { i } ^ { r }$ . We find $k _ { \\Omega _ { i } ^ { r } } = \\operatorname* { m a x } { \\mathrm { p o o l i n g } _ { j \\in \\Omega _ { i } ^ { r } } k _ { j } }$ already provides good empirical results without introducing additional parameters; we can also use DeepSets [32] to obtain such abstraction. • $\\bar { p } ( j | \\Omega _ { i } ^ { r } )$ : This term is the probability of getting $j$ within this local span $\\Omega _ { i } ^ { r }$ . We make $p ( j | \\Omega _ { i } ^ { r } ) \\propto$ $\\exp \\left( \\frac { q _ { \\Omega _ { i } ^ { r } } } { \\sqrt { d } } k _ { j } ^ { \\top } \\right)$ , where we use max pooling or DeepSets over $\\{ q _ { j } \\} _ { j \\in \\Omega _ { i } ^ { r } }$ to obtain ${ { q } \\ o \\Omega _ { i } ^ { r } }$ similarly. ",
|
| 514 |
+
"bbox": [
|
| 515 |
+
173,
|
| 516 |
+
207,
|
| 517 |
+
825,
|
| 518 |
+
342
|
| 519 |
+
],
|
| 520 |
+
"page_idx": 4
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"type": "text",
|
| 524 |
+
"text": "Normalizing Probability Terms. The terms in each local expectation $p ( j | \\Omega _ { i } ^ { r } )$ , $\\forall j \\in \\Omega _ { i } ^ { r }$ can be normalized within the local span; the direct expectation $\\tilde { p } ( j | i )$ and the terms in $p ( \\Omega _ { i } ^ { r } | i )$ should be normalized together, ",
|
| 525 |
+
"bbox": [
|
| 526 |
+
174,
|
| 527 |
+
348,
|
| 528 |
+
825,
|
| 529 |
+
390
|
| 530 |
+
],
|
| 531 |
+
"page_idx": 4
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"type": "equation",
|
| 535 |
+
"img_path": "images/477bd1b2d1419f6b5ab8a2bc431a6b1d60782aa1c0549c53476208807e82647d.jpg",
|
| 536 |
+
"text": "$$\nZ ( x _ { i } ) = \\sum _ { j \\in \\Omega _ { i } ^ { ( 0 ) } } \\exp \\left( \\frac { q _ { i } } { \\sqrt { d } } k _ { j } ^ { \\top } \\right) + \\sum _ { r = 1 } ^ { n _ { i } } \\exp \\left( \\frac { q _ { i } } { \\sqrt { d } } k _ { \\Omega _ { i } ^ { r } } ^ { \\top } \\right) ,\n$$",
|
| 537 |
+
"text_format": "latex",
|
| 538 |
+
"bbox": [
|
| 539 |
+
318,
|
| 540 |
+
390,
|
| 541 |
+
678,
|
| 542 |
+
438
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 4
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"text": "and $Z ( x _ { i } )$ is the normalizing constant when calculating $\\tilde { p } ( j | i )$ and $p ( \\Omega _ { i } ^ { r } | i )$ . ",
|
| 549 |
+
"bbox": [
|
| 550 |
+
173,
|
| 551 |
+
439,
|
| 552 |
+
668,
|
| 553 |
+
454
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 4
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "text",
|
| 559 |
+
"text": "3.3 Trade-offs in Combiner ",
|
| 560 |
+
"text_level": 1,
|
| 561 |
+
"bbox": [
|
| 562 |
+
174,
|
| 563 |
+
472,
|
| 564 |
+
377,
|
| 565 |
+
487
|
| 566 |
+
],
|
| 567 |
+
"page_idx": 4
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"type": "text",
|
| 571 |
+
"text": "Combiner achieves full attention with reduced cost without making explicit sparsity or low-rank assumptions over the attention matrix. However this efficiency gain is not free. In this section we discuss the limitations of the simplification made by Combiner, and provide a simple workaround. ",
|
| 572 |
+
"bbox": [
|
| 573 |
+
174,
|
| 574 |
+
498,
|
| 575 |
+
825,
|
| 576 |
+
540
|
| 577 |
+
],
|
| 578 |
+
"page_idx": 4
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"type": "text",
|
| 582 |
+
"text": "Structured Attention Approximation. We obtain the local decomposition (5) under the conditional independence assumption. Therefore, the local expectation in (7) is independent of the position $i$ , this suggests that any two locations $i _ { 1 }$ and $i _ { 2 }$ with $\\Omega _ { i _ { 1 } } ^ { r } = \\Omega _ { i _ { 2 } } ^ { r } = \\Omega$ would have linearly dependent attention scores over the region $\\Omega$ . Formally, the probabilities formed by the effective conditional distribution $\\begin{array} { r } { \\vec { a } ( \\Omega ) _ { i _ { 1 } } = \\left[ q ( j _ { 1 } | i _ { 1 } ) , q ( j _ { 2 } | i _ { 1 } ) , \\dots , q ( j _ { | \\Omega _ { i _ { 1 } } ^ { r } | } | i _ { 1 } ) \\right] = \\frac { p ( \\Omega _ { i _ { 1 } } ^ { r } | i _ { 1 } ) } { p ( \\Omega _ { i _ { 2 } } ^ { r } | i _ { 2 } ) } \\vec { a } ( \\Omega ) _ { i _ { 2 } } } \\end{array}$ . In other words, the rank of the sub-matrix over the same partition in the resulting attention matrix is 1, therefore, the attention matrix is locally low-rank based on the partition. On the other hand, the direct expectation fully attends to each position in sub-support $\\Omega _ { 0 }$ , which ensures the full-rank block. These two attention schemes make the attention matrix of Combiner structured. Compared with the low-rank approximation for attention [26, 28, 30], which is inspired from random features [29] in the kernel community, a structured approximation that exploits both the locally low-rank and full-rank blocks has been proved more powerful theoretically and empirically in large-scale kernel machines [27]. ",
|
| 583 |
+
"bbox": [
|
| 584 |
+
173,
|
| 585 |
+
550,
|
| 586 |
+
825,
|
| 587 |
+
727
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 4
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "text",
|
| 593 |
+
"text": "Improving Expressiveness Using a Mixture Model. One way to further improve the expressiveness of the local factorization is to use a mixture model. This idea is adapted from the mixture of softmaxs [33] to obtain high-rank softmax layer in language modeling. Let $\\omega$ be a certain partition of the support (i.e., collection of $\\Omega _ { i } ^ { r }$ ) of $\\Omega _ { i }$ , then one can easily use $\\begin{array} { r } { A ( x _ { i } ) = \\frac { 1 } { M } \\sum _ { m = 1 } ^ { M } A ( x _ { i } ; \\omega _ { m } ) } \\end{array}$ to compute the attention, where each component of the mixture $A ( x _ { i } ; \\omega _ { m } )$ is the term (7) using a specific factorization plan $\\omega _ { m }$ . Empirically we find two components are already sufficient to improve performance. ",
|
| 594 |
+
"bbox": [
|
| 595 |
+
173,
|
| 596 |
+
736,
|
| 597 |
+
826,
|
| 598 |
+
837
|
| 599 |
+
],
|
| 600 |
+
"page_idx": 4
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "text",
|
| 604 |
+
"text": "4 Combiner Instantiations ",
|
| 605 |
+
"text_level": 1,
|
| 606 |
+
"bbox": [
|
| 607 |
+
176,
|
| 608 |
+
853,
|
| 609 |
+
410,
|
| 610 |
+
871
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 4
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "text",
|
| 616 |
+
"text": "In this section we show several local factorization schemes satisfying the requirements in Section 3.1. As we will see, Combiner is able to convert several sparse transformers [14, 18, 20–22] into full ",
|
| 617 |
+
"bbox": [
|
| 618 |
+
173,
|
| 619 |
+
882,
|
| 620 |
+
823,
|
| 621 |
+
911
|
| 622 |
+
],
|
| 623 |
+
"page_idx": 4
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "text",
|
| 627 |
+
"text": "attention, with the same order of computation and memory consumption. One can also design other factorization patterns, which can be easily instantiated in Combiner. ",
|
| 628 |
+
"bbox": [
|
| 629 |
+
173,
|
| 630 |
+
90,
|
| 631 |
+
825,
|
| 632 |
+
119
|
| 633 |
+
],
|
| 634 |
+
"page_idx": 5
|
| 635 |
+
},
|
| 636 |
+
{
|
| 637 |
+
"type": "text",
|
| 638 |
+
"text": "4.1 Combiner-Fixed ",
|
| 639 |
+
"text_level": 1,
|
| 640 |
+
"bbox": [
|
| 641 |
+
174,
|
| 642 |
+
136,
|
| 643 |
+
328,
|
| 644 |
+
151
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 5
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "text",
|
| 650 |
+
"text": "The Sparse Transformer [14] is one of the most representative variants that can achieve $\\mathcal { O } ( L \\sqrt { L } )$ computation and memory cost with sparse attention. Here we show how to convert this fixed pattern proposed in [14] (Figure 1(A)) into a factorization plan, and instantiate a full attention variant named the Combiner-Fixed (Figure 1(D)). ",
|
| 651 |
+
"bbox": [
|
| 652 |
+
174,
|
| 653 |
+
161,
|
| 654 |
+
825,
|
| 655 |
+
217
|
| 656 |
+
],
|
| 657 |
+
"page_idx": 5
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"type": "text",
|
| 661 |
+
"text": "In the fixed-sparse attention, the support is Ωsparse MLMi $\\Omega _ { i } ^ { \\mathrm { s p a r s e M L M } } = \\{ j : j$ mod $s = 0 \\} \\cup \\{ j : j \\equiv i \\left( \\operatorname { d i v } s \\right) \\}$ where $s$ is a hyper-parameter, div is integer division, and $j \\equiv i$ (div $s$ ) denotes that the quotients of $i$ and $j$ w.r.t. $s$ are the same. In the autoregressive case, $\\Omega _ { i } ^ { \\mathrm { s p a r s e L M } } = \\Omega _ { i } ^ { \\mathrm { s p a r s e M L M } } \\cap [ i ]$ . Please refer to Figure 1(A) for an illustration of the LM version. ",
|
| 662 |
+
"bbox": [
|
| 663 |
+
173,
|
| 664 |
+
222,
|
| 665 |
+
825,
|
| 666 |
+
285
|
| 667 |
+
],
|
| 668 |
+
"page_idx": 5
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"type": "text",
|
| 672 |
+
"text": "Our design of $\\omega _ { \\mathrm { f i x e d } } ^ { \\mathrm { M L M } }$ has the following form: ",
|
| 673 |
+
"bbox": [
|
| 674 |
+
178,
|
| 675 |
+
289,
|
| 676 |
+
465,
|
| 677 |
+
305
|
| 678 |
+
],
|
| 679 |
+
"page_idx": 5
|
| 680 |
+
},
|
| 681 |
+
{
|
| 682 |
+
"type": "text",
|
| 683 |
+
"text": "$\\Omega _ { i } ^ { 0 } = \\left\\{ j : j \\equiv i \\left( \\mathrm { d i v } s \\right) \\right\\} , \\Omega _ { i } ^ { r } = \\left\\{ j : j \\equiv \\left( \\mathrm { d i v } s \\right) \\right\\} ,$ div $s = r , j \\notin \\Omega _ { i } ^ { 0 } \\} , \\forall r \\in [ L \\operatorname { d i v } s ] , \\forall i \\in [ L ]$ (10) where each local expectation is performed in each span of size $s$ , and there are totally $L$ div $s$ spans across all locations. For each position $i \\in [ L ]$ , there are $( s + ( L \\dim s ) )$ terms in (7) ; the local expectation has (√ $L$ div $s$ ) terms . The overall complexity is √ $\\mathcal { O } ( L \\cdot ( s + 2 ( L \\operatorname { d i v } s ) ) _ { } ^ { }$ ). The optimal $s$ is $\\mathcal { O } ( \\sqrt { L } )$ , and we can achieve $\\mathcal { O } ( L \\sqrt { L } )$ computation and memory complexity, which is the same as [14] but here we gain full attention capability in each attention head. For the LM case, we can√ simply have $\\omega _ { \\mathrm { f i x e d } } ^ { \\mathrm { L M } } : \\{ \\Omega _ { i } ^ { r } \\cap [ i ] | \\Omega _ { i } ^ { r } \\in \\omega _ { \\mathrm { f i x e d } } ^ { \\mathrm { M L M } } \\}$ , which has the same $\\mathcal { O } ( L \\sqrt { L } )$ optimal complexity. ",
|
| 684 |
+
"bbox": [
|
| 685 |
+
173,
|
| 686 |
+
306,
|
| 687 |
+
825,
|
| 688 |
+
415
|
| 689 |
+
],
|
| 690 |
+
"page_idx": 5
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"type": "text",
|
| 694 |
+
"text": "4.2 Combiner-Logsparse ",
|
| 695 |
+
"text_level": 1,
|
| 696 |
+
"bbox": [
|
| 697 |
+
174,
|
| 698 |
+
429,
|
| 699 |
+
361,
|
| 700 |
+
444
|
| 701 |
+
],
|
| 702 |
+
"page_idx": 5
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "text",
|
| 706 |
+
"text": "The Logsparse Transformer is proposed in [18] and can theoretically achieve $\\mathcal { O } ( L \\log L )$ cost. The general idea is to make the size of support $\\Omega _ { i } ^ { \\mathrm { s p a r s e } }$ no larger than $\\lceil \\log _ { 2 } i \\rceil$ . For the ease of notation, we first define $\\mathbf { b i t s } ( n ) = [ b _ { 1 } , b _ { 2 } , \\ldots , { \\bar { b } } _ { \\lceil \\log _ { 2 } n \\rceil } ]$ to be the binary representation of integer $n$ , with $b _ { t } \\in \\{ 0 , 1 \\}$ the coefficient of basis $2 ^ { t }$ . Thus we have P⌈log2 n⌉t=1 bt ∗ 2t. One of the possible design choices to make Logsparse in the LM case is Ωsparse LMi $\\Omega _ { i } ^ { \\mathrm { s p a r s e L M } } = \\left\\{ \\mathrm { s u f f } _ { t } : = \\sum _ { \\tau = t } ^ { \\left\\lceil \\log _ { 2 } i - 1 \\right\\rceil } b _ { \\tau } * 2 ^ { \\tau } \\right\\} _ { t = 1 } ^ { \\left\\lceil \\log _ { 2 } i - 1 \\right\\rceil } \\cup$ $\\{ i \\}$ , i.e., attend to the location indices that equal to the suffix sum of the weighted bits $( i - 1 )$ , as well as location $i$ itself. This serves as our base sparse version as shown in Figure 1(B). ",
|
| 707 |
+
"bbox": [
|
| 708 |
+
173,
|
| 709 |
+
453,
|
| 710 |
+
825,
|
| 711 |
+
571
|
| 712 |
+
],
|
| 713 |
+
"page_idx": 5
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"type": "text",
|
| 717 |
+
"text": "To exploit this scheme in the Combiner framework, we can define $\\lceil \\log _ { 2 } n \\rceil$ non-overlapping supports, where $\\Omega _ { i } ^ { r } = [ \\mathrm { s u f f } _ { r } ] \\setminus [ \\mathrm { s u f f } _ { r + 1 } ]$ with the boundary case $\\big [ \\mathrm { s u f f } _ { [ \\log _ { 2 } i - 1 ] + 1 } \\big ] = \\emptyset$ . Note that for the ease of notation, some of the $\\Omega _ { i } ^ { r }$ are empty which will be ignored. In this case, the direct attention set $\\Omega _ { i } ^ { 0 }$ includes $\\{ i \\}$ , as well as $\\{ i - 1 \\}$ when $i$ is an even number. Such a factorization leads to Combiner-Logsparse, as shown in Figure 1(E). From the Figure, we observe that in total we will have span summaries for every $2 , 4 , 8 , \\ldots , 2 ^ { \\lfloor \\log _ { 2 } L \\rfloor }$ locations, resulting in total $\\scriptstyle \\sum _ { t = 1 } ^ { \\lfloor \\log _ { 2 } L \\rfloor } \\lfloor { \\frac { L } { 2 ^ { t } } } \\rfloor$ or $i$ will select at most non-overlapping spans to cover the full support $\\Omega _ { i }$ , and thus, the total cost will be $\\mathcal { O } \\left( L \\log L \\right)$ . We leave the design of MLM case to Appendix B. ",
|
| 718 |
+
"bbox": [
|
| 719 |
+
173,
|
| 720 |
+
577,
|
| 721 |
+
825,
|
| 722 |
+
705
|
| 723 |
+
],
|
| 724 |
+
"page_idx": 5
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"type": "text",
|
| 728 |
+
"text": "4.3 Combiner-Axial ",
|
| 729 |
+
"text_level": 1,
|
| 730 |
+
"bbox": [
|
| 731 |
+
174,
|
| 732 |
+
722,
|
| 733 |
+
326,
|
| 734 |
+
737
|
| 735 |
+
],
|
| 736 |
+
"page_idx": 5
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"type": "text",
|
| 740 |
+
"text": "The Axial Transformer [20] builds the attention along each axis of the input data. Without loss of generality, we focus on 2D case where the input sequence is reshaped into a matrix of size $n \\times m = L$ . Specifically, the location $i$ in original sequence will be in $r o w _ { i } = ( i - 1 )$ div $m + 1$ and $c o l _ { i } = ( i - 1 )$ mod $m + 1$ . We show how to simply enable full attention with factorization on 2D matrix, hence Combiner-Axial. ",
|
| 741 |
+
"bbox": [
|
| 742 |
+
173,
|
| 743 |
+
747,
|
| 744 |
+
825,
|
| 745 |
+
816
|
| 746 |
+
],
|
| 747 |
+
"page_idx": 5
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"type": "text",
|
| 751 |
+
"text": "The sparse axial has Ωsparse MLM $\\Omega _ { i } ^ { \\mathrm { s p a r s e ~ M L M } } = \\{ j : j - 1 \\equiv i - 1 ( { \\bmod { m } } ) \\} \\cup \\{ j : j - 1 \\equiv i - 1 ( \\operatorname { d i v } m ) \\}$ , and Ωsparse LMi $\\Omega _ { i } ^ { \\mathrm { s p a r s e L M } } = \\Omega _ { i } ^ { \\mathrm { s p a r s e M L M } } \\cap [ i ]$ , which all have at most $O ( m + n )$ entries for each $i$ , as illustrated in Figure 1(C). We propose several factorization schemes to make it an attention with full support. ",
|
| 752 |
+
"bbox": [
|
| 753 |
+
173,
|
| 754 |
+
821,
|
| 755 |
+
825,
|
| 756 |
+
869
|
| 757 |
+
],
|
| 758 |
+
"page_idx": 5
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"type": "text",
|
| 762 |
+
"text": "$\\omega _ { \\mathrm { a x i a l - v e r t i c a l } } ^ { \\mathrm { L M } }$ : $\\Omega _ { i } ^ { 0 } = \\Omega _ { i } ^ { \\mathrm { s p a r s e L M } }$ , and corre $\\Omega _ { i } ^ { r } = \\left\\{ j : j \\equiv r ( { \\bmod { m } } ) \\right\\} \\cap \\left[ i - c o l _ { i } \\right]$ , for ere w $r \\in [ m ] \\setminus \\{ c o l _ { i } \\}$ . Asg to $\\Omega _ { i } ^ { r }$ $r$ $r o w _ { i }$ ",
|
| 763 |
+
"bbox": [
|
| 764 |
+
173,
|
| 765 |
+
880,
|
| 766 |
+
821,
|
| 767 |
+
912
|
| 768 |
+
],
|
| 769 |
+
"page_idx": 5
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"type": "image",
|
| 773 |
+
"img_path": "images/f21eec83f1fc7887399610c4e25456057ef79db8490d3c8ed0c89963791a36c5.jpg",
|
| 774 |
+
"image_caption": [
|
| 775 |
+
"Figure 2: Attention matrices and sequence being attended (e.g., a $3 { \\tt x } 4$ image) of vertical and horizontal variants of Combiner-Axial. Blue and yellow correspond to direct and local attention respectively for location $i$ (purple). Locations connected by arrows correspond to the same support $\\Omega ^ { r }$ . "
|
| 776 |
+
],
|
| 777 |
+
"image_footnote": [],
|
| 778 |
+
"bbox": [
|
| 779 |
+
209,
|
| 780 |
+
87,
|
| 781 |
+
787,
|
| 782 |
+
258
|
| 783 |
+
],
|
| 784 |
+
"page_idx": 6
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"type": "text",
|
| 788 |
+
"text": "obtain the abstraction. To obtain such abstraction for all the locations, we can leverage the cummax operator for each column to efficiently obtain the prefix-max. ",
|
| 789 |
+
"bbox": [
|
| 790 |
+
183,
|
| 791 |
+
315,
|
| 792 |
+
823,
|
| 793 |
+
344
|
| 794 |
+
],
|
| 795 |
+
"page_idx": 6
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"type": "text",
|
| 799 |
+
"text": "$\\omega _ { \\mathrm { a x i a l - h o r i z o n t a l } } ^ { \\mathrm { L M } }$ : similar as $\\omega _ { \\mathrm { a x i a l } }$ -vertical except that each $\\Omega _ { i } ^ { r }$ summarizes the row $r$ before $r o w _ { i }$ and \nexcludes $c o l _ { i }$ (Figure 2(B)). \n• $\\omega _ { \\mathrm { a x i a l - r o w m a j o r } } ^ { \\mathrm { L M } }$ : $\\Omega _ { i } ^ { 0 } = \\{ j : j - 1 \\equiv i - 1 ( \\operatorname { d i v } m ) \\} \\cap [ i ]$ , i.e., elements in the same row are directly \nattended, while $\\Omega _ { i } ^ { r } = \\{ j : j \\equiv r ( \\operatorname { d i v } m ) \\} \\cap [ i - c o l _ { i } ]$ captures the rows before $r o w _ { i }$ . This structure is similar to Combiner-Fixed, except for the way that the abstraction (and thus the local expectation) is computed. Combiner-Fixed computes the abstraction only based on $r$ of partition $\\Omega _ { i } ^ { r }$ , where \nωaxial-rowmajor depends on both $r$ and the column $c o l _ { i }$ (Figure 1(F)). ",
|
| 800 |
+
"bbox": [
|
| 801 |
+
173,
|
| 802 |
+
349,
|
| 803 |
+
825,
|
| 804 |
+
457
|
| 805 |
+
],
|
| 806 |
+
"page_idx": 6
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"type": "text",
|
| 810 |
+
"text": "In all cases above, the cost is similar to the Axial Transformer [20], which is $O ( L \\sqrt { L } )$ if we reshape the sequence to a 2D matrix with $n , m = O ( { \\sqrt { L } } )$ . We defer the MLM case to Appendix C. ",
|
| 811 |
+
"bbox": [
|
| 812 |
+
173,
|
| 813 |
+
469,
|
| 814 |
+
823,
|
| 815 |
+
501
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 6
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "4.4 Combiner-Learnable ",
|
| 822 |
+
"text_level": 1,
|
| 823 |
+
"bbox": [
|
| 824 |
+
174,
|
| 825 |
+
518,
|
| 826 |
+
361,
|
| 827 |
+
534
|
| 828 |
+
],
|
| 829 |
+
"page_idx": 6
|
| 830 |
+
},
|
| 831 |
+
{
|
| 832 |
+
"type": "text",
|
| 833 |
+
"text": "Inspired by the Reformer [21] and Routing Transformer [22], we can also learn the factorization plan $\\omega$ from the data. We illustrate this with Routing Transformer and provide a way to enable full attention in Routing Transformer following the Combiner principle. ",
|
| 834 |
+
"bbox": [
|
| 835 |
+
174,
|
| 836 |
+
545,
|
| 837 |
+
825,
|
| 838 |
+
587
|
| 839 |
+
],
|
| 840 |
+
"page_idx": 6
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"type": "text",
|
| 844 |
+
"text": "For a specific layer, suppose we have a learned disjoint region (or cluster in Routing Transformer) $\\left\\{ \\Omega ^ { r } \\right\\} _ { r = 1 } ^ { n }$ where $\\cup _ { r } \\Omega ^ { r } = [ L ]$ . In Routing Transformer, we simply have $\\Omega _ { i } ^ { \\mathrm { s p a r s e M L M } } = \\mathbf { \\bar { \\Omega } } ^ { r _ { i } }$ where $\\Omega ^ { r _ { i } }$ denotes the region where position $i$ belongs to. To define the Combiner factorization, we let ",
|
| 845 |
+
"bbox": [
|
| 846 |
+
174,
|
| 847 |
+
593,
|
| 848 |
+
825,
|
| 849 |
+
637
|
| 850 |
+
],
|
| 851 |
+
"page_idx": 6
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"type": "equation",
|
| 855 |
+
"img_path": "images/a39cc45c05c70368040dcaec6558d875a01c40ff0bb40fa0ef8d8d4c35ec2972.jpg",
|
| 856 |
+
"text": "$$\n\\begin{array} { r } { \\omega _ { \\mathrm { r o u t i n g ~ M L M } } : \\Omega _ { i } ^ { 0 } = \\Omega ^ { r _ { i } } , \\quad \\Omega _ { i } ^ { r } = \\Omega ^ { r } \\setminus \\Omega _ { i } ^ { 0 } , \\quad \\forall r \\in [ n _ { i } ] . } \\end{array}\n$$",
|
| 857 |
+
"text_format": "latex",
|
| 858 |
+
"bbox": [
|
| 859 |
+
318,
|
| 860 |
+
637,
|
| 861 |
+
679,
|
| 862 |
+
655
|
| 863 |
+
],
|
| 864 |
+
"page_idx": 6
|
| 865 |
+
},
|
| 866 |
+
{
|
| 867 |
+
"type": "text",
|
| 868 |
+
"text": "Note that $n _ { i } = n$ (i.e., number of learned clusters) for all locations. The above factorization can only work for MLM. LM requires the following definition: ",
|
| 869 |
+
"bbox": [
|
| 870 |
+
173,
|
| 871 |
+
656,
|
| 872 |
+
823,
|
| 873 |
+
683
|
| 874 |
+
],
|
| 875 |
+
"page_idx": 6
|
| 876 |
+
},
|
| 877 |
+
{
|
| 878 |
+
"type": "equation",
|
| 879 |
+
"img_path": "images/16c72f70ab0b05492a2ba8389db918e3c50dee4ab7d83c20b2d746b28ee6ddd8.jpg",
|
| 880 |
+
"text": "$$\n\\omega _ { \\mathrm { r o u t i n g \\ L M } } : \\Omega _ { i } ^ { 0 } = \\Omega ^ { r _ { i } } \\cap [ i ] , \\quad \\Omega _ { i } ^ { r } = \\left( \\Omega ^ { r } \\setminus \\Omega _ { i } ^ { 0 } \\right) \\cap [ i ] , \\quad \\forall r \\in [ n _ { i } ] .\n$$",
|
| 881 |
+
"text_format": "latex",
|
| 882 |
+
"bbox": [
|
| 883 |
+
282,
|
| 884 |
+
683,
|
| 885 |
+
715,
|
| 886 |
+
703
|
| 887 |
+
],
|
| 888 |
+
"page_idx": 6
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"type": "text",
|
| 892 |
+
"text": "In general, both LM and MLM can have sub-quadratic cost when $n = O ( { \\sqrt { L } } )$ . However, routing variants (including the Routing Transformer) require a gather operation, which can be slow on TPUs (see illustration in Appendix D). ",
|
| 893 |
+
"bbox": [
|
| 894 |
+
174,
|
| 895 |
+
705,
|
| 896 |
+
825,
|
| 897 |
+
747
|
| 898 |
+
],
|
| 899 |
+
"page_idx": 6
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"type": "text",
|
| 903 |
+
"text": "5 Experimental Evaluation ",
|
| 904 |
+
"text_level": 1,
|
| 905 |
+
"bbox": [
|
| 906 |
+
174,
|
| 907 |
+
767,
|
| 908 |
+
415,
|
| 909 |
+
786
|
| 910 |
+
],
|
| 911 |
+
"page_idx": 6
|
| 912 |
+
},
|
| 913 |
+
{
|
| 914 |
+
"type": "text",
|
| 915 |
+
"text": "We evaluate Combiner with different full attention patterns on both autoregressive and bidirectional sequence modeling tasks, covering a wide range of input data from images to texts. All tasks considered involve long sequences for up to 12,000 in length, some of which prevent the applicability of the vanilla transformer. We compare Combiner with state-of-the-art Transformers. We also perform a series of ablation studies where all of the models being compared use the exact same architecture that only differ in the attention module, avoiding individual tricks employed in the original works (e.g., using both learnable and fixed patterns in Routing Transformer [22]). Details to reproducing all experimental results can be found in Appendix E. ",
|
| 916 |
+
"bbox": [
|
| 917 |
+
173,
|
| 918 |
+
800,
|
| 919 |
+
825,
|
| 920 |
+
911
|
| 921 |
+
],
|
| 922 |
+
"page_idx": 6
|
| 923 |
+
},
|
| 924 |
+
{
|
| 925 |
+
"type": "table",
|
| 926 |
+
"img_path": "images/1bf0e8e10cb19b323f3ca715fe7ef9bd20970818bc7d290a4326be8d23302dc1.jpg",
|
| 927 |
+
"table_caption": [
|
| 928 |
+
"Table 1: Ablation results in Bits per Dimension (Bits/Dim) on CIFAR-10 and ImageNet-64. "
|
| 929 |
+
],
|
| 930 |
+
"table_footnote": [],
|
| 931 |
+
"table_body": "<table><tr><td>Model</td><td>Layers</td><td>CIFAR-10</td><td>ImageNet-64</td></tr><tr><td>Reformer [21]</td><td>6</td><td>1</td><td>3.740</td></tr><tr><td>Performer [28]</td><td>6</td><td>3.335</td><td>3.719</td></tr><tr><td>Logsparse [18]</td><td>6</td><td>4.253</td><td>4.351</td></tr><tr><td>Combiner-Logsparse (Ours)</td><td>6</td><td>3.366</td><td>3.795</td></tr><tr><td>Fixed [14]</td><td>6</td><td>3.408</td><td>3.696</td></tr><tr><td>Combiner-Fixed (Ours)</td><td>6</td><td>3.321</td><td>3.654</td></tr><tr><td>Axial [20]</td><td>6</td><td>3.666</td><td>4.032</td></tr><tr><td>Combiner-Axial (Ours)</td><td>6</td><td>3.050</td><td>3.585</td></tr><tr><td>Combiner-Mixture (Ours)</td><td>6</td><td>3.040</td><td>3.585</td></tr><tr><td>Reformer r[21]</td><td>12</td><td>1</td><td>3.710</td></tr><tr><td>Performer [28]</td><td>12</td><td>3.310</td><td>3.636</td></tr><tr><td>Routing Transformer [22]</td><td>12</td><td>2.950</td><td>1</td></tr><tr><td>Combiner-Mixture (Ours)</td><td>12</td><td>2.885</td><td>3.504</td></tr></table>",
|
| 932 |
+
"bbox": [
|
| 933 |
+
281,
|
| 934 |
+
113,
|
| 935 |
+
717,
|
| 936 |
+
328
|
| 937 |
+
],
|
| 938 |
+
"page_idx": 7
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"type": "text",
|
| 942 |
+
"text": "5.1 Autoregressive Sequence Modeling ",
|
| 943 |
+
"text_level": 1,
|
| 944 |
+
"bbox": [
|
| 945 |
+
174,
|
| 946 |
+
334,
|
| 947 |
+
455,
|
| 948 |
+
349
|
| 949 |
+
],
|
| 950 |
+
"page_idx": 7
|
| 951 |
+
},
|
| 952 |
+
{
|
| 953 |
+
"type": "text",
|
| 954 |
+
"text": "In this subsection, we first perform density estimation on text and image using Combiner. ",
|
| 955 |
+
"bbox": [
|
| 956 |
+
173,
|
| 957 |
+
363,
|
| 958 |
+
759,
|
| 959 |
+
377
|
| 960 |
+
],
|
| 961 |
+
"page_idx": 7
|
| 962 |
+
},
|
| 963 |
+
{
|
| 964 |
+
"type": "text",
|
| 965 |
+
"text": "5.1.1 Language Modeling ",
|
| 966 |
+
"text_level": 1,
|
| 967 |
+
"bbox": [
|
| 968 |
+
174,
|
| 969 |
+
400,
|
| 970 |
+
364,
|
| 971 |
+
415
|
| 972 |
+
],
|
| 973 |
+
"page_idx": 7
|
| 974 |
+
},
|
| 975 |
+
{
|
| 976 |
+
"type": "text",
|
| 977 |
+
"text": "For language modeling, we focus on the Wiki-40BEn dataset [34], which consists of clean Wikipedia pages in English. We use a sentence piece model with vocabulary size 32K to tokenize the text and measure the perplexity at the sentence piece level. To ensure fair comparison, all models being compared again have the same number of layers and hidden sizes, are are implemented under the same code base. ",
|
| 978 |
+
"bbox": [
|
| 979 |
+
174,
|
| 980 |
+
426,
|
| 981 |
+
503,
|
| 982 |
+
551
|
| 983 |
+
],
|
| 984 |
+
"page_idx": 7
|
| 985 |
+
},
|
| 986 |
+
{
|
| 987 |
+
"type": "text",
|
| 988 |
+
"text": "Table 2 shows the results of the comparison. As we can see, under $2 \\mathrm { k }$ sequence length, Combiner variants are consistently better than their corresponding baselines, and are very close to the standard Transformer. When sequence length goes to 8k, the standard Transformer runs out of memory, whereas Combiner continues to achieve improved perplexity, surpassing the result of Transformer- $2 \\mathrm { k }$ . If we further use DeepSets to calculate the summarization terms ${ { q } \\Omega _ { i } ^ { r } }$ and $k _ { \\Omega _ { i } ^ { r } }$ , we may further achieve lower perplexity as shown in Table 3. ",
|
| 989 |
+
"bbox": [
|
| 990 |
+
174,
|
| 991 |
+
558,
|
| 992 |
+
503,
|
| 993 |
+
709
|
| 994 |
+
],
|
| 995 |
+
"page_idx": 7
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"type": "table",
|
| 999 |
+
"img_path": "images/54b6db801c17327fc8192edcbe5486948f37b2c33b1a3e7058e72d5fc17169d3.jpg",
|
| 1000 |
+
"table_caption": [
|
| 1001 |
+
"Table 2: LM Perplexity on Wiki-40B (Main). "
|
| 1002 |
+
],
|
| 1003 |
+
"table_footnote": [],
|
| 1004 |
+
"table_body": "<table><tr><td>Model</td><td>Perplexity</td></tr><tr><td>Transformer-2k[1]</td><td>17.26</td></tr><tr><td>Performer-2k [28]</td><td>19.66</td></tr><tr><td>Routing-2k [22]</td><td>20.85</td></tr><tr><td>Fixed-2k [14] Combiner-Fixed-2k (Ours)</td><td>18.04 17.70</td></tr><tr><td>Axial-2k [20] Combiner-Axial-2k (Ours)</td><td>20.82</td></tr><tr><td>Combiner-Fixed-8k (Ours) Combiner-Axial-8k (Ours)</td><td>17.56 16.60</td></tr></table>",
|
| 1005 |
+
"bbox": [
|
| 1006 |
+
519,
|
| 1007 |
+
417,
|
| 1008 |
+
818,
|
| 1009 |
+
594
|
| 1010 |
+
],
|
| 1011 |
+
"page_idx": 7
|
| 1012 |
+
},
|
| 1013 |
+
{
|
| 1014 |
+
"type": "table",
|
| 1015 |
+
"img_path": "images/a4272b3334e67916579f0179b84edb96f0ac0dd47bed6c69c54c416d38a19fb9.jpg",
|
| 1016 |
+
"table_caption": [
|
| 1017 |
+
"Table 3: LM Perplexity on Wiki-40B (Ablation). "
|
| 1018 |
+
],
|
| 1019 |
+
"table_footnote": [],
|
| 1020 |
+
"table_body": "<table><tr><td>Model</td><td>Perplexity</td></tr><tr><td>Transformer-2k [1]</td><td>17.26</td></tr><tr><td>Combiner-DeepSets-Max-8k (Ours)</td><td>16.29</td></tr><tr><td>Combiner-DeepSets-Mean-8k(Ours)</td><td>16.48</td></tr><tr><td>Combiner-Max-8k(Ours)</td><td>16.60</td></tr><tr><td>Combiner-Mean-8k (Ours)</td><td>16.54</td></tr></table>",
|
| 1021 |
+
"bbox": [
|
| 1022 |
+
519,
|
| 1023 |
+
619,
|
| 1024 |
+
818,
|
| 1025 |
+
709
|
| 1026 |
+
],
|
| 1027 |
+
"page_idx": 7
|
| 1028 |
+
},
|
| 1029 |
+
{
|
| 1030 |
+
"type": "text",
|
| 1031 |
+
"text": "5.1.2 Image Generative Models ",
|
| 1032 |
+
"text_level": 1,
|
| 1033 |
+
"bbox": [
|
| 1034 |
+
174,
|
| 1035 |
+
732,
|
| 1036 |
+
403,
|
| 1037 |
+
747
|
| 1038 |
+
],
|
| 1039 |
+
"page_idx": 7
|
| 1040 |
+
},
|
| 1041 |
+
{
|
| 1042 |
+
"type": "text",
|
| 1043 |
+
"text": "CIFAR-10. We first perform a sanity check where we compare sparse attention baselines against Combiner with full attention under the same architecture on the CIFAR-10 dataset. The sequence length is 3072. For all the methods, we use a same 6-layer transformer with 8 attention heads and 512 embedding dimensions. We train all models for $5 0 0 \\mathrm { k }$ iterations using batch size 32 on TPU v2. As shown in Table 1, given the same model architecture, Combiner-X performs significantly better than the base model $\\mathbf { X }$ under the bits per dimension (BPD) metric on the 10,000 test images. In particular, Combiner significantly decreases BPD by 0.887, 0.087, and 0.626 compared to the base models Logsparse, Fixed and Axial, respectively. Note that all of the Combiner variants achieve better performance than the best of the base models. This demonstrates the advantage of Combiner over the baselines given the same 6-layer architecture. We observe a similar trend under a 12-layer architecture. ",
|
| 1044 |
+
"bbox": [
|
| 1045 |
+
173,
|
| 1046 |
+
758,
|
| 1047 |
+
825,
|
| 1048 |
+
911
|
| 1049 |
+
],
|
| 1050 |
+
"page_idx": 7
|
| 1051 |
+
},
|
| 1052 |
+
{
|
| 1053 |
+
"type": "table",
|
| 1054 |
+
"img_path": "images/76a30a18bdeedf67f4562f5e7b0b5c55792438076f3820a0d126ddbeecb9bf07.jpg",
|
| 1055 |
+
"table_caption": [],
|
| 1056 |
+
"table_footnote": [],
|
| 1057 |
+
"table_body": "<table><tr><td>CIFAR-10</td><td>Bits/Dim</td></tr><tr><td>PixelCNN[15]</td><td>3.03</td></tr><tr><td>PixelCNN++ [36]</td><td>2.92</td></tr><tr><td>Image Transformer [16]</td><td>2.90</td></tr><tr><td>PixelSNAIL [37]</td><td>2.85</td></tr><tr><td>Sparse Transformer [14]</td><td>2.80</td></tr><tr><td>Combiner-Axial (ours)</td><td>2.77</td></tr></table>",
|
| 1058 |
+
"bbox": [
|
| 1059 |
+
205,
|
| 1060 |
+
121,
|
| 1061 |
+
465,
|
| 1062 |
+
234
|
| 1063 |
+
],
|
| 1064 |
+
"page_idx": 8
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"type": "table",
|
| 1068 |
+
"img_path": "images/5455f51ffc1a5ae14c03f3df131468bd96a9bb99dae30a5687425dace723457e.jpg",
|
| 1069 |
+
"table_caption": [
|
| 1070 |
+
"Table 4: Bits per Dimension (Bits/Dim) on CIFAR-10 and ImageNet-64. "
|
| 1071 |
+
],
|
| 1072 |
+
"table_footnote": [],
|
| 1073 |
+
"table_body": "<table><tr><td>ImageNet 64x64</td><td>Bits/Dim</td></tr><tr><td>PixelCNN[15]</td><td>3.57</td></tr><tr><td>Parallel Multiscale [38] Glow [39]</td><td>3.70 3.81</td></tr><tr><td>SPN [40]</td><td>3.52</td></tr><tr><td>Sparse Transformer[14]</td><td>3.44</td></tr><tr><td>Axial Transformer[20]</td><td>3.44</td></tr><tr><td>Routing Transformer [22] Combiner-Axial (ours)</td><td>3.43 3.42</td></tr></table>",
|
| 1074 |
+
"bbox": [
|
| 1075 |
+
527,
|
| 1076 |
+
112,
|
| 1077 |
+
789,
|
| 1078 |
+
246
|
| 1079 |
+
],
|
| 1080 |
+
"page_idx": 8
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "text",
|
| 1084 |
+
"text": "Following the 128-layer architecture in Child et al. [14], we apply Combiner-Axial and achieve state-of-the-art performance, 2.77 BPD on CIFAR-10, as listed in Table 4. We run all of the models in Table 4 without data augmentation [35]. ",
|
| 1085 |
+
"bbox": [
|
| 1086 |
+
176,
|
| 1087 |
+
251,
|
| 1088 |
+
821,
|
| 1089 |
+
294
|
| 1090 |
+
],
|
| 1091 |
+
"page_idx": 8
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"type": "text",
|
| 1095 |
+
"text": "ImageNet-64. We also evaluate performance under the autoregressive setting on ImageNet-64, where sequence length is 12,288. We first perform the same analysis as CIFAR-10 and compare Combiner-X with the baselines using the same model architecture. As shown in Table 1, Combiner consistently outperforms the baselines with the same attention pattern. We further apply CombinerAxial to a 30-layer Transformer, which achieves state-of-the-art performance on density estimation on ImageNet-64, demonstrating the effectiveness of full attention achieved by Combiner. ",
|
| 1096 |
+
"bbox": [
|
| 1097 |
+
173,
|
| 1098 |
+
300,
|
| 1099 |
+
826,
|
| 1100 |
+
383
|
| 1101 |
+
],
|
| 1102 |
+
"page_idx": 8
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"type": "text",
|
| 1106 |
+
"text": "5.2 Bidirectional Sequence Modeling ",
|
| 1107 |
+
"text_level": 1,
|
| 1108 |
+
"bbox": [
|
| 1109 |
+
176,
|
| 1110 |
+
401,
|
| 1111 |
+
442,
|
| 1112 |
+
416
|
| 1113 |
+
],
|
| 1114 |
+
"page_idx": 8
|
| 1115 |
+
},
|
| 1116 |
+
{
|
| 1117 |
+
"type": "text",
|
| 1118 |
+
"text": "Besides autoregressive tasks, we also evaluate Combiner on a set of standard bidirectional tasks to show the general applicability of the method. ",
|
| 1119 |
+
"bbox": [
|
| 1120 |
+
178,
|
| 1121 |
+
428,
|
| 1122 |
+
823,
|
| 1123 |
+
457
|
| 1124 |
+
],
|
| 1125 |
+
"page_idx": 8
|
| 1126 |
+
},
|
| 1127 |
+
{
|
| 1128 |
+
"type": "text",
|
| 1129 |
+
"text": "5.2.1 Long-Range Arena ",
|
| 1130 |
+
"text_level": 1,
|
| 1131 |
+
"bbox": [
|
| 1132 |
+
174,
|
| 1133 |
+
473,
|
| 1134 |
+
357,
|
| 1135 |
+
488
|
| 1136 |
+
],
|
| 1137 |
+
"page_idx": 8
|
| 1138 |
+
},
|
| 1139 |
+
{
|
| 1140 |
+
"type": "text",
|
| 1141 |
+
"text": "Long-Range Arena (LRA) is a unified benchmark [31] for probing the capability of efficient transformers on handling long sequences. We evaluate our models on five tasks from LRA: ListOps, Text Classification, Retrieval, Image Classification and Pathfinder. All of the tasks are sequence-level multi-class classification. Please refer to the original LRA paper for more details. ",
|
| 1142 |
+
"bbox": [
|
| 1143 |
+
174,
|
| 1144 |
+
497,
|
| 1145 |
+
825,
|
| 1146 |
+
554
|
| 1147 |
+
],
|
| 1148 |
+
"page_idx": 8
|
| 1149 |
+
},
|
| 1150 |
+
{
|
| 1151 |
+
"type": "table",
|
| 1152 |
+
"img_path": "images/816223c0034a49c1bc9e8b70080a1cc343e69afb0852e3370bdf14ea22e176e9.jpg",
|
| 1153 |
+
"table_caption": [
|
| 1154 |
+
"Table 5: Experimental results on Long-Range Arena benchmark. "
|
| 1155 |
+
],
|
| 1156 |
+
"table_footnote": [],
|
| 1157 |
+
"table_body": "<table><tr><td>Model</td><td>ListOps</td><td>Text</td><td>Retrieval</td><td>Image</td><td>Pathfinder</td><td>Avg</td></tr><tr><td>Chance Transformer Local Attention</td><td>10.00 36.38 15.95</td><td>50.00 64.27 52.98</td><td>50.00 57.46 53.39</td><td>10.00 42.44 41.46</td><td>50.00 88.81 84.64</td><td>34.00 57.87 49.68</td></tr><tr><td>Sparse TRans. Longformer Linformer Reformer Sinkhorn Trans. Synthesizer BigBird Linear Trans.</td><td>35.78 36.03 35.49 36.30 34.20 36.50 37.08 17.15</td><td>63.58 62.85 53.94 56.10 61.20 61.68 64.02 65.90</td><td>59.59 56.89 52.27 53.40 53.83 54.67 59.29 53.09</td><td>44.24 42.22 38.56 38.07 41.23 41.61 40.83 42.34</td><td>83.90 86.68 86.17 79.18 73.36 81.61 86.75 88.13</td><td>57.42 56.93 53.28 52.61 52.76 55.21 57.59 53.32</td></tr><tr><td>Performer Combiner-Fixed Combiner-Axial</td><td>36.00 36.65 36.15</td><td>65.40 64.99 64.36</td><td>53.82 59.81 56.10</td><td>42.77 41.67 41.33</td><td>88.76 88.59 88.43</td><td>57.35 58.34 57.27</td></tr></table>",
|
| 1158 |
+
"bbox": [
|
| 1159 |
+
271,
|
| 1160 |
+
593,
|
| 1161 |
+
725,
|
| 1162 |
+
784
|
| 1163 |
+
],
|
| 1164 |
+
"page_idx": 8
|
| 1165 |
+
},
|
| 1166 |
+
{
|
| 1167 |
+
"type": "text",
|
| 1168 |
+
"text": "As shown in Table 5, Combiner is able to match the performance of vanilla Transformer and achieves even better performance in some tasks. Following the protocol of LRA, all methods use the same architecture and hyperparameters for a controllable comparison. We use the numbers from Tay et al. [31] for all tasks except for Pathfinder. Since we were unable to reproduce the original Pathfinder results using the default setup in LRA Github repository, we rerun all the baselines using Pathfinderinter configuration to conduct fair comparison. However, as the benchmark is still of small-scale and the LRA official website discourages hyperparameter tuning, Table 5 should be treated as results for the test bench of expressiveness compared to vanilla Transformer. ",
|
| 1169 |
+
"bbox": [
|
| 1170 |
+
173,
|
| 1171 |
+
800,
|
| 1172 |
+
826,
|
| 1173 |
+
911
|
| 1174 |
+
],
|
| 1175 |
+
"page_idx": 8
|
| 1176 |
+
},
|
| 1177 |
+
{
|
| 1178 |
+
"type": "table",
|
| 1179 |
+
"img_path": "images/bd3d5f73584ac4bc85e8d75f657d388e767927177eb9189e4d315f9d6fb6e021.jpg",
|
| 1180 |
+
"table_caption": [
|
| 1181 |
+
"Table 6: MLM perplexity on C4 dataset. "
|
| 1182 |
+
],
|
| 1183 |
+
"table_footnote": [],
|
| 1184 |
+
"table_body": "<table><tr><td>Model</td><td>Perplexity</td></tr><tr><td>Transformer-2k [1]</td><td>4.552</td></tr><tr><td>BigBird-2k [41]</td><td>4.696</td></tr><tr><td>Performer-2k [28]</td><td>10.940</td></tr><tr><td>Fixed-2k [14]</td><td>5.279</td></tr><tr><td>Combiner-Fixed-2k (Ours)</td><td>5.170</td></tr><tr><td>Axial-2k [20]</td><td>5.370</td></tr><tr><td>Combiner-Axial-2k (Ours)</td><td>4.809</td></tr><tr><td>Routing-2k [22] Combiner-Routing-2k (Ours)</td><td>6.703 6.539</td></tr><tr><td>BigBird-8k [41]</td><td></td></tr><tr><td></td><td>4.542</td></tr><tr><td>Combiner-Axial-8k(Ours)</td><td>4.190</td></tr><tr><td>Combiner-Fixed-8k (Ours)</td><td>4.139</td></tr></table>",
|
| 1185 |
+
"bbox": [
|
| 1186 |
+
173,
|
| 1187 |
+
111,
|
| 1188 |
+
419,
|
| 1189 |
+
289
|
| 1190 |
+
],
|
| 1191 |
+
"page_idx": 9
|
| 1192 |
+
},
|
| 1193 |
+
{
|
| 1194 |
+
"type": "image",
|
| 1195 |
+
"img_path": "images/2a35b8f15325e3c385ba7b653ee59e16f7f468d8a1d936c355072ec94c8eca34.jpg",
|
| 1196 |
+
"image_caption": [
|
| 1197 |
+
"Figure 3: We measure the inference runtime and memory usage for eight models. Overall Combiner has similar speed with Performer and its sparse counterpart but Vanilla Transformer quickly goes OOM when sequence length grows. "
|
| 1198 |
+
],
|
| 1199 |
+
"image_footnote": [],
|
| 1200 |
+
"bbox": [
|
| 1201 |
+
426,
|
| 1202 |
+
98,
|
| 1203 |
+
820,
|
| 1204 |
+
215
|
| 1205 |
+
],
|
| 1206 |
+
"page_idx": 9
|
| 1207 |
+
},
|
| 1208 |
+
{
|
| 1209 |
+
"type": "text",
|
| 1210 |
+
"text": "5.2.2 Masked Language Modeling ",
|
| 1211 |
+
"text_level": 1,
|
| 1212 |
+
"bbox": [
|
| 1213 |
+
174,
|
| 1214 |
+
295,
|
| 1215 |
+
423,
|
| 1216 |
+
310
|
| 1217 |
+
],
|
| 1218 |
+
"page_idx": 9
|
| 1219 |
+
},
|
| 1220 |
+
{
|
| 1221 |
+
"type": "text",
|
| 1222 |
+
"text": "As the core element of BERT langauge pretraining [5], masked language modeling (MLM) refers to the task of reconstructing tokens that are randomly masked out in the input sequence. As with the LM task, we use perplexity as the main metric, which correlates relatively well with down-stream task performance. Specifically, we use the large scale C4 dataset [8] for training and evaluation, and consider different sequence lengths. Following the original BERT setup, we mask out $15 \\%$ of the tokens in each input sequence. The comparison is summarized in Table 6. Similar to the LM result, different Combiner variants consistently outperform their corresponding baselines under $2 \\mathrm { k }$ sequence length. However, apart from the standard Transformer, Combiner-2k also falls behind BigBird- $2 \\mathrm { k }$ . We conjecture that this is related to the special design in BigBird such as all tokens can always attend to the $< \\mathsf { c l s } >$ token directly, which is only applicable in non-causal problems. That said, when we further increase sequence length to 8k, the standard Transformer runs into OOM issue, whereas Combiner not only outperforms BigBird but also substantially surpasses Transformer-2k. This suggests that Combiner can truly benefit from scaling learning to longer sequence lengths. ",
|
| 1223 |
+
"bbox": [
|
| 1224 |
+
173,
|
| 1225 |
+
325,
|
| 1226 |
+
825,
|
| 1227 |
+
505
|
| 1228 |
+
],
|
| 1229 |
+
"page_idx": 9
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"type": "text",
|
| 1233 |
+
"text": "5.3 Runtime and Memory Usage of Combiner ",
|
| 1234 |
+
"text_level": 1,
|
| 1235 |
+
"bbox": [
|
| 1236 |
+
173,
|
| 1237 |
+
537,
|
| 1238 |
+
504,
|
| 1239 |
+
553
|
| 1240 |
+
],
|
| 1241 |
+
"page_idx": 9
|
| 1242 |
+
},
|
| 1243 |
+
{
|
| 1244 |
+
"type": "text",
|
| 1245 |
+
"text": "Here we evaluate the inference runtime and memory usage of five baselines – Transformer, Performer, BigBird, Sparse-Fixed and Sparse-Axial, as well as three variants of Combiner– Combiner-Fixed, Combiner-Axial and Combiner-Mixture. We run inference of all the models on a TPU v3-16 (16 cores $\\mathrm { ~ x ~ } 1 6 6 \\mathrm { B }$ ) with batch size 16, and we test sequences of length from $2 ^ { 1 0 }$ to $2 ^ { 1 4 }$ . As shown in Figure 3, Combiner instantiations achieve comparable runtime and memory usage with their sparse counterpart and Performer. Note Combiner achieves much better empirical performance than the sparse models and Performer. Combiner-Mixture has the same asymptotic complexity with Combiner-Fixed and Combiner-Axial, however, since it requires running two partition plans, it is slower than Combiner-Fixed and Combiner-Axial. Due to the gather operation required by the random attention which is not very TPU/GPU friendly, BigBird is very computationally expensive. And the Transformer model quickly runs out of memory when sequence length increases. ",
|
| 1246 |
+
"bbox": [
|
| 1247 |
+
173,
|
| 1248 |
+
570,
|
| 1249 |
+
826,
|
| 1250 |
+
723
|
| 1251 |
+
],
|
| 1252 |
+
"page_idx": 9
|
| 1253 |
+
},
|
| 1254 |
+
{
|
| 1255 |
+
"type": "text",
|
| 1256 |
+
"text": "6 Conclusion ",
|
| 1257 |
+
"text_level": 1,
|
| 1258 |
+
"bbox": [
|
| 1259 |
+
174,
|
| 1260 |
+
758,
|
| 1261 |
+
299,
|
| 1262 |
+
776
|
| 1263 |
+
],
|
| 1264 |
+
"page_idx": 9
|
| 1265 |
+
},
|
| 1266 |
+
{
|
| 1267 |
+
"type": "text",
|
| 1268 |
+
"text": "Inspired by the conditional expectation view of attention mechanism, we propose Combiner, a drop-in replacement of the attention module. By introducing structured decomposition to the conditional probability, Combiner achieves full attention capability while maintaining sub-quadratic computational and memory cost. We instantiate several Combiner variants converting existing sparse transformers to full attention. Combiner achieves state-of-the-art performance on both autoregressive and bidirectional tasks for image and text modeling, showing benefits in both modeling effectiveness and runtime efficiency. Future work includes additional factorization pattern designs, as well as applications of Combiner in domains like bioinformatics and speech. ",
|
| 1269 |
+
"bbox": [
|
| 1270 |
+
174,
|
| 1271 |
+
800,
|
| 1272 |
+
825,
|
| 1273 |
+
911
|
| 1274 |
+
],
|
| 1275 |
+
"page_idx": 9
|
| 1276 |
+
},
|
| 1277 |
+
{
|
| 1278 |
+
"type": "text",
|
| 1279 |
+
"text": "Acknowledgments and Disclosure of Funding ",
|
| 1280 |
+
"text_level": 1,
|
| 1281 |
+
"bbox": [
|
| 1282 |
+
174,
|
| 1283 |
+
88,
|
| 1284 |
+
553,
|
| 1285 |
+
107
|
| 1286 |
+
],
|
| 1287 |
+
"page_idx": 10
|
| 1288 |
+
},
|
| 1289 |
+
{
|
| 1290 |
+
"type": "text",
|
| 1291 |
+
"text": "We would like to thank Richard Song and David Dohan for the help on introducing Performer codebase and experiment configurations, Yi Tay and Mostafa Dehghani for clarifications on the LRA benchmark, James Lee-Thorp, Joshua Ainslie, and Ilya Eckstein for clarification on their LRA experiment results, Adams Yu for performing internal paper review and helpful suggestions. We also gratefully acknowledge the support of DARPA under Nos. HR00112190039 (TAMI), N660011924033 (MCS); ARO under Nos. W911NF-16-1-0342 (MURI), W911NF-16-1-0171 (DURIP); NSF under Nos. OAC-1835598 (CINES), OAC-1934578 (HDR), CCF-1918940 (Expeditions), IIS-2030477 (RAPID), NIH under No. R56LM013365; Stanford Data Science Initiative, Wu Tsai Neurosciences Institute, Chan Zuckerberg Biohub, Amazon, JPMorgan Chase, Docomo, Hitachi, Intel, JD.com, KDDI, NVIDIA, Dell, Toshiba, Visa, and UnitedHealth Group. Hongyu Ren is supported by the Masason Foundation Fellowship and the Apple PhD Fellowship. Jure Leskovec is a Chan Zuckerberg Biohub investigator. ",
|
| 1292 |
+
"bbox": [
|
| 1293 |
+
173,
|
| 1294 |
+
119,
|
| 1295 |
+
826,
|
| 1296 |
+
286
|
| 1297 |
+
],
|
| 1298 |
+
"page_idx": 10
|
| 1299 |
+
},
|
| 1300 |
+
{
|
| 1301 |
+
"type": "text",
|
| 1302 |
+
"text": "References ",
|
| 1303 |
+
"text_level": 1,
|
| 1304 |
+
"bbox": [
|
| 1305 |
+
174,
|
| 1306 |
+
305,
|
| 1307 |
+
266,
|
| 1308 |
+
320
|
| 1309 |
+
],
|
| 1310 |
+
"page_idx": 10
|
| 1311 |
+
},
|
| 1312 |
+
{
|
| 1313 |
+
"type": "text",
|
| 1314 |
+
"text": "[1] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems (NeurIPS), 2017. \n[2] Mia Xu Chen, Orhan Firat, Ankur Bapna, Melvin Johnson, Wolfgang Macherey, George Foster, Llion Jones, Niki Parmar, Mike Schuster, Zhifeng Chen, et al. The best of both worlds: Combining recent advances in neural machine translation. In Annual Meeting of the Association for Computational Linguistics (ACL), 2018. \n[3] 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. In Advances in Neural Information Processing Systems (NeurIPS), 2020. \n[4] Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Ruslan Salakhutdinov, and Quoc V Le. Xlnet: Generalized autoregressive pretraining for language understanding. In Advances in Neural Information Processing Systems (NeurIPS), 2019. \n[5] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Annual Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT), 2019. \n[6] Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. Albert: A lite bert for self-supervised learning of language representations. In International Conference on Learning Representations (ICLR), 2020. \n[7] Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019. \n[8] 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. arXiv preprint arXiv:1910.10683, 2019. \n[9] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations (ICLR), 2021. \n[10] Aditya Kanade, Petros Maniatis, Gogul Balakrishnan, and Kensen Shi. Learning and evaluating contextual embedding of source code. In International Conference on Machine Learning (ICML), 2020. \n[11] Linhao Dong, Shuang Xu, and Bo Xu. Speech-transformer: a no-recurrence sequence-tosequence model for speech recognition. In IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2018. \n[12] Ali Madani, Bryan McCann, Nikhil Naik, Nitish Shirish Keskar, Namrata Anand, Raphael R Eguchi, Po-Ssu Huang, and Richard Socher. Progen: Language modeling for protein generation. arXiv preprint arXiv:2004.03497, 2020. \n[13] Cheng-Zhi Anna Huang, Ashish Vaswani, Jakob Uszkoreit, Noam Shazeer, Curtis Hawthorne, AM Dai, MD Hoffman, and D Eck. Music transformer: Generating music with long-term structure (2018). In International Conference on Learning Representations (ICLR), 2019. \n[14] Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509, 2019. \n[15] Aaron Van Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. In International Conference on Machine Learning (ICML), 2016. \n[16] Niki Parmar, Ashish Vaswani, Jakob Uszkoreit, Lukasz Kaiser, Noam Shazeer, Alexander Ku, and Dustin Tran. Image transformer. In International Conference on Machine Learning (ICML), 2018. \n[17] Jack W Rae, Anna Potapenko, Siddhant M Jayakumar, and Timothy P Lillicrap. Compressive transformers for long-range sequence modelling. In International Conference on Learning Representations (ICLR), 2020. \n[18] Shiyang Li, Xiaoyong Jin, Yao Xuan, Xiyou Zhou, Wenhu Chen, Yu-Xiang Wang, and Xifeng Yan. Enhancing the locality and breaking the memory bottleneck of transformer on time series forecasting. In Advances in Neural Information Processing Systems (NeurIPS), 2019. \n[19] Zilong Huang, Xinggang Wang, Lichao Huang, Chang Huang, Yunchao Wei, and Wenyu Liu. Ccnet: Criss-cross attention for semantic segmentation. In International Conference on Computer Vision (ICCV), 2019. \n[20] Jonathan Ho, Nal Kalchbrenner, Dirk Weissenborn, and Tim Salimans. Axial attention in multidimensional transformers. arXiv preprint arXiv:1912.12180, 2019. \n[21] Nikita Kitaev, Łukasz Kaiser, and Anselm Levskaya. Reformer: The efficient transformer. In International Conference on Learning Representations (ICLR), 2020. \n[22] Aurko Roy, Mohammad Saffar, Ashish Vaswani, and David Grangier. Efficient content-based sparse attention with routing transformers. Transactions of the Association for Computational Linguistics, 9:53–68, 2021. \n[23] Zihang Dai, Zhilin Yang, Yiming Yang, Jaime Carbonell, Quoc V Le, and Ruslan Salakhutdinov. Transformer-xl: Attentive language models beyond a fixed-length context. In Annual Meeting of the Association for Computational Linguistics (ACL), 2019. \n[24] Zhuoran Shen, Mingyuan Zhang, Shuai Yi, Junjie Yan, and Haiyu Zhao. Factorized attention: Self-attention with linear complexities. CoRR, 2018. \n[25] Sinong Wang, Belinda Li, Madian Khabsa, Han Fang, and Hao Ma. Linformer: Self-attention with linear complexity. arXiv preprint arXiv:2006.04768, 2020. \n[26] Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and François Fleuret. Transformers are rnns: Fast autoregressive transformers with linear attention. In International Conference on Machine Learning (ICML), 2020. \n[27] Si Si, Cho-Jui Hsieh, and Inderjit S Dhillon. Memory efficient kernel approximation. The Journal of Machine Learning Research, 2017. \n[28] Krzysztof Choromanski, Valerii Likhosherstov, David Dohan, Xingyou Song, Andreea Gane, Tamas Sarlos, Peter Hawkins, Jared Davis, Afroz Mohiuddin, Lukasz Kaiser, et al. Rethinking attention with performers. In International Conference on Learning Representations (ICLR), 2021. \n[29] Ali Rahimi, Benjamin Recht, et al. Random features for large-scale kernel machines. In Advances in Neural Information Processing Systems (NeurIPS), 2007. \n[30] Hao Peng, Nikolaos Pappas, Dani Yogatama, Roy Schwartz, Noah A Smith, and Lingpeng Kong. Random feature attention. In International Conference on Learning Representations (ICLR), 2021. \n[31] Yi Tay, Mostafa Dehghani, Samira Abnar, Yikang Shen, Dara Bahri, Philip Pham, Jinfeng Rao, Liu Yang, Sebastian Ruder, and Donald Metzler. Long range arena: A benchmark for efficient transformers. In International Conference on Learning Representations (ICLR), 2021. \n[32] Manzil Zaheer, Satwik Kottur, Siamak Ravanbakhsh, Barnabas Poczos, Ruslan Salakhutdinov, and Alexander Smola. Deep sets. In Advances in Neural Information Processing Systems (NeurIPS), 2017. \n[33] Zhilin Yang, Zihang Dai, Ruslan Salakhutdinov, and William W Cohen. Breaking the softmax bottleneck: A high-rank rnn language model. In International Conference on Learning Representations (ICLR), 2018. \n[34] Mandy Guo, Zihang Dai, Denny Vrandeciˇ c, and Rami Al-Rfou. Wiki-40b: Multilingual ´ language model dataset. In Proceedings of The 12th Language Resources and Evaluation Conference, 2020. \n[35] Heewoo Jun, Rewon Child, Mark Chen, John Schulman, Aditya Ramesh, Alec Radford, and Ilya Sutskever. Distribution augmentation for generative modeling. In International Conference on Machine Learning (ICML), 2020. \n[36] Tim Salimans, Andrej Karpathy, Xi Chen, and Diederik P Kingma. Pixelcnn $^ { + + }$ : Improving the pixelcnn with discretized logistic mixture likelihood and other modifications. In International Conference on Learning Representations (ICLR), 2017. \n[37] Xi Chen, Nikhil Mishra, Mostafa Rohaninejad, and Pieter Abbeel. Pixelsnail: An improved autoregressive generative model. In International Conference on Machine Learning (ICML), 2018. \n[38] Scott Reed, Aäron Oord, Nal Kalchbrenner, Sergio Gómez Colmenarejo, Ziyu Wang, Yutian Chen, Dan Belov, and Nando Freitas. Parallel multiscale autoregressive density estimation. In International Conference on Machine Learning (ICML), 2017. \n[39] Diederik P Kingma and Prafulla Dhariwal. Glow: Generative flow with invertible 1x1 convolutions. In Advances in Neural Information Processing Systems (NeurIPS), 2018. \n[40] Jacob Menick and Nal Kalchbrenner. Generating high fidelity images with subscale pixel networks and multidimensional upscaling. In International Conference on Learning Representations (ICLR), 2019. \n[41] Manzil Zaheer, Guru Guruganesh, Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, et al. Big bird: Transformers for longer sequences. In Advances in Neural Information Processing Systems (NeurIPS), 2020. \n[42] Chulhee Yun, Yin-Wen Chang, Srinadh Bhojanapalli, Ankit Singh Rawat, Sashank J Reddi, and Sanjiv Kumar. $o ( n )$ connections are expressive enough: Universal approximability of sparse transformers. arXiv preprint arXiv:2006.04862, 2020. ",
|
| 1315 |
+
"bbox": [
|
| 1316 |
+
173,
|
| 1317 |
+
321,
|
| 1318 |
+
826,
|
| 1319 |
+
915
|
| 1320 |
+
],
|
| 1321 |
+
"page_idx": 10
|
| 1322 |
+
},
|
| 1323 |
+
{
|
| 1324 |
+
"type": "text",
|
| 1325 |
+
"text": "",
|
| 1326 |
+
"bbox": [
|
| 1327 |
+
169,
|
| 1328 |
+
75,
|
| 1329 |
+
826,
|
| 1330 |
+
915
|
| 1331 |
+
],
|
| 1332 |
+
"page_idx": 11
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"type": "text",
|
| 1336 |
+
"text": "",
|
| 1337 |
+
"bbox": [
|
| 1338 |
+
169,
|
| 1339 |
+
90,
|
| 1340 |
+
828,
|
| 1341 |
+
742
|
| 1342 |
+
],
|
| 1343 |
+
"page_idx": 12
|
| 1344 |
+
}
|
| 1345 |
+
]
|
parse/train/MQQeeDiO5vv/MQQeeDiO5vv_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/MQQeeDiO5vv/MQQeeDiO5vv_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|